diff options
author | Tim Peters <tim.peters@gmail.com> | 2003-02-04 00:21:07 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2003-02-04 00:21:07 (GMT) |
commit | 5b7da39f23832d283cbea64c24cad2ed31d87ccb (patch) | |
tree | 18d6b80bcfd5c6a88f9d4f099933de35e827e7d2 /Lib | |
parent | e7028ac56cb34b6ec4757308afdd588611a82db6 (diff) | |
download | cpython-5b7da39f23832d283cbea64c24cad2ed31d87ccb.zip cpython-5b7da39f23832d283cbea64c24cad2ed31d87ccb.tar.gz cpython-5b7da39f23832d283cbea64c24cad2ed31d87ccb.tar.bz2 |
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].
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/copy_reg.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/copy_reg.py b/Lib/copy_reg.py index 2bff142..8099403 100644 --- a/Lib/copy_reg.py +++ b/Lib/copy_reg.py @@ -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.""" |