diff options
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.""" |