| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 3035d23 commit eb97988
6 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,3 @@ | |||
| 1 | + __all__ = ['deque', 'defaultdict'] | ||
| 2 | + | ||
| 3 | + from _collections import deque, defaultdict | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1337,11 +1337,11 @@ PyDoc_STRVAR(module_doc, | |||
| 1337 | 1337 | "); | |
| 1338 | 1338 | ||
| 1339 | 1339 | PyMODINIT_FUNC | |
| 1340 | - initcollections(void) | ||
| 1340 | + init_collections(void) | ||
| 1341 | 1341 | { | |
| 1342 | 1342 | PyObject *m; | |
| 1343 | 1343 | ||
| 1344 | - m = Py_InitModule3("collections", NULL, module_doc); | ||
| 1344 | + m = Py_InitModule3("_collections", NULL, module_doc); | ||
| 1345 | 1345 | if (m == NULL) | |
| 1346 | 1346 | return; | |
| 1347 | 1347 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -43,7 +43,7 @@ extern void initxxsubtype(void); | |||
| 43 | 43 | extern void initzipimport(void); | |
| 44 | 44 | extern void init_random(void); | |
| 45 | 45 | extern void inititertools(void); | |
| 46 | - extern void initcollections(void); | ||
| 46 | + extern void init_collections(void); | ||
| 47 | 47 | extern void init_heapq(void); | |
| 48 | 48 | extern void init_bisect(void); | |
| 49 | 49 | extern void init_symtable(void); | |
@@ -124,7 +124,7 @@ struct _inittab _PyImport_Inittab[] = { | |||
| 124 | 124 | {"_heapq", init_heapq}, | |
| 125 | 125 | {"_lsprof", init_lsprof}, | |
| 126 | 126 | {"itertools", inititertools}, | |
| 127 | - {"collections", initcollections}, | ||
| 127 | + {"_collections", init_collections}, | ||
| 128 | 128 | {"_symtable", init_symtable}, | |
| 129 | 129 | {"mmap", initmmap}, | |
| 130 | 130 | {"_csv", init_csv}, | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -458,7 +458,7 @@ | |||
| 458 | 458 | RelativePath="..\Objects\codeobject.c"> | |
| 459 | 459 | </File> | |
| 460 | 460 | <File | |
| 461 | - RelativePath="..\Modules\collectionsmodule.c"> | ||
| 461 | + RelativePath="..\Modules\_collectionsmodule.c"> | ||
| 462 | 462 | </File> | |
| 463 | 463 | <File | |
| 464 | 464 | RelativePath="..\Python\compile.c"> | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1381,7 +1381,7 @@ | |||
| 1381 | 1381 | > | |
| 1382 | 1382 | </File> | |
| 1383 | 1383 | <File | |
| 1384 | - RelativePath="..\Modules\collectionsmodule.c" | ||
| 1384 | + RelativePath="..\Modules\_collectionsmodule.c" | ||
| 1385 | 1385 | > | |
| 1386 | 1386 | </File> | |
| 1387 | 1387 | <File | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -370,7 +370,7 @@ def detect_modules(self): | |||
| 370 | 370 | # fast iterator tools implemented in C | |
| 371 | 371 | exts.append( Extension("itertools", ["itertoolsmodule.c"]) ) | |
| 372 | 372 | # high-performance collections | |
| 373 | - exts.append( Extension("collections", ["collectionsmodule.c"]) ) | ||
| 373 | + exts.append( Extension("_collections", ["_collectionsmodule.c"]) ) | ||
| 374 | 374 | # bisect | |
| 375 | 375 | exts.append( Extension("_bisect", ["_bisectmodule.c"]) ) | |
| 376 | 376 | # heapq | |
| Back | FazBrowse Home | New Git URL |
0 commit comments