Commit c46cb2a1 authored by Raymond Hettinger's avatar Raymond Hettinger

* Restore the pure python version of heapq.py.

* Mark the C version as private and only use when available.
parent 61e40bd8
This diff is collapsed.
This diff is collapsed.
...@@ -47,7 +47,7 @@ extern void initzipimport(void); ...@@ -47,7 +47,7 @@ extern void initzipimport(void);
extern void init_random(void); extern void init_random(void);
extern void inititertools(void); extern void inititertools(void);
extern void initcollections(void); extern void initcollections(void);
extern void initheapq(void); extern void init_heapq(void);
extern void init_bisect(void); extern void init_bisect(void);
extern void init_symtable(void); extern void init_symtable(void);
extern void initmmap(void); extern void initmmap(void);
...@@ -135,7 +135,7 @@ struct _inittab _PyImport_Inittab[] = { ...@@ -135,7 +135,7 @@ struct _inittab _PyImport_Inittab[] = {
{"_hotshot", init_hotshot}, {"_hotshot", init_hotshot},
{"_random", init_random}, {"_random", init_random},
{"_bisect", init_bisect}, {"_bisect", init_bisect},
{"heapq", initheapq}, {"_heapq", init_heapq},
{"itertools", inititertools}, {"itertools", inititertools},
{"collections", initcollections}, {"collections", initcollections},
{"_symtable", init_symtable}, {"_symtable", init_symtable},
......
...@@ -327,7 +327,7 @@ class PyBuildExt(build_ext): ...@@ -327,7 +327,7 @@ class PyBuildExt(build_ext):
# bisect # bisect
exts.append( Extension("_bisect", ["_bisectmodule.c"]) ) exts.append( Extension("_bisect", ["_bisectmodule.c"]) )
# heapq # heapq
exts.append( Extension("heapq", ["heapqmodule.c"]) ) exts.append( Extension("_heapq", ["_heapqmodule.c"]) )
# operator.add() and similar goodies # operator.add() and similar goodies
exts.append( Extension('operator', ['operator.c']) ) exts.append( Extension('operator', ['operator.c']) )
# Python C API test module # Python C API test module
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment