Brought some module variables into synch with pickle.py's current values.

Imported the extension-registry dicts from copy_reg.py, in preparation for
tackling EXT[124].
This commit is contained in:
Tim Peters 2003-02-04 00:21:07 +00:00
parent e7028ac56c
commit 5b7da39f23
2 changed files with 50 additions and 17 deletions

View file

@ -81,6 +81,8 @@ def _reduce(self):
extension_registry = {} # key -> code
inverted_registry = {} # code -> key
extension_cache = {} # code -> object
# Don't ever rebind those names: cPickle grabs a reference to them when
# it's initialized, and won't see a rebinding.
def add_extension(module, name, code):
"""Register an extension code."""