mirror of
https://github.com/python/cpython.git
synced 2025-11-25 21:11:09 +00:00
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:
parent
e7028ac56c
commit
5b7da39f23
2 changed files with 50 additions and 17 deletions
|
|
@ -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."""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue