Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
eb979889
Commit
eb979889
authored
Feb 28, 2007
by
Raymond Hettinger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Prepare collections module for pure python code entries.
parent
3035d239
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
10 additions
and
7 deletions
+10
-7
Lib/collections.py
Lib/collections.py
+3
-0
Modules/_collectionsmodule.c
Modules/_collectionsmodule.c
+2
-2
PC/config.c
PC/config.c
+2
-2
PCbuild/pythoncore.vcproj
PCbuild/pythoncore.vcproj
+1
-1
PCbuild8/pythoncore.vcproj
PCbuild8/pythoncore.vcproj
+1
-1
setup.py
setup.py
+1
-1
No files found.
Lib/collections.py
0 → 100644
View file @
eb979889
__all__
=
[
'deque'
,
'defaultdict'
]
from
_collections
import
deque
,
defaultdict
Modules/collectionsmodule.c
→
Modules/
_
collectionsmodule.c
View file @
eb979889
...
...
@@ -1337,11 +1337,11 @@ PyDoc_STRVAR(module_doc,
"
);
PyMODINIT_FUNC
initcollections
(
void
)
init
_
collections
(
void
)
{
PyObject
*
m
;
m
=
Py_InitModule3
(
"collections"
,
NULL
,
module_doc
);
m
=
Py_InitModule3
(
"
_
collections"
,
NULL
,
module_doc
);
if
(
m
==
NULL
)
return
;
...
...
PC/config.c
View file @
eb979889
...
...
@@ -43,7 +43,7 @@ extern void initxxsubtype(void);
extern
void
initzipimport
(
void
);
extern
void
init_random
(
void
);
extern
void
inititertools
(
void
);
extern
void
initcollections
(
void
);
extern
void
init
_
collections
(
void
);
extern
void
init_heapq
(
void
);
extern
void
init_bisect
(
void
);
extern
void
init_symtable
(
void
);
...
...
@@ -124,7 +124,7 @@ struct _inittab _PyImport_Inittab[] = {
{
"_heapq"
,
init_heapq
},
{
"_lsprof"
,
init_lsprof
},
{
"itertools"
,
inititertools
},
{
"
collections"
,
init
collections
},
{
"
_collections"
,
init_
collections
},
{
"_symtable"
,
init_symtable
},
{
"mmap"
,
initmmap
},
{
"_csv"
,
init_csv
},
...
...
PCbuild/pythoncore.vcproj
View file @
eb979889
...
...
@@ -458,7 +458,7 @@
RelativePath=
"..\Objects\codeobject.c"
>
</File>
<File
RelativePath=
"..\Modules\collectionsmodule.c"
>
RelativePath=
"..\Modules\
_
collectionsmodule.c"
>
</File>
<File
RelativePath=
"..\Python\compile.c"
>
...
...
PCbuild8/pythoncore.vcproj
View file @
eb979889
...
...
@@ -1381,7 +1381,7 @@
>
</File>
<File
RelativePath=
"..\Modules\collectionsmodule.c"
RelativePath=
"..\Modules\
_
collectionsmodule.c"
>
</File>
<File
...
...
setup.py
View file @
eb979889
...
...
@@ -370,7 +370,7 @@ class PyBuildExt(build_ext):
# fast iterator tools implemented in C
exts
.
append
(
Extension
(
"itertools"
,
[
"itertoolsmodule.c"
])
)
# high-performance collections
exts
.
append
(
Extension
(
"
collections"
,
[
"
collectionsmodule.c"
])
)
exts
.
append
(
Extension
(
"
_collections"
,
[
"_
collectionsmodule.c"
])
)
# bisect
exts
.
append
(
Extension
(
"_bisect"
,
[
"_bisectmodule.c"
])
)
# heapq
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment