Home
last modified time | relevance | path

Searched refs:_extension_registry (Results 1 – 6 of 6) sorted by relevance

/external/python/cpython2/Lib/
Dcopy_reg.py155 _extension_registry = {} # key -> code variable
167 if (_extension_registry.get(key) == code and
170 if key in _extension_registry:
172 (key, _extension_registry[key]))
176 _extension_registry[key] = code
182 if (_extension_registry.get(key) != code or
186 del _extension_registry[key]
Dpickle.py31 from copy_reg import _extension_registry, _inverted_registry, _extension_cache
762 code = _extension_registry.get((module, name))
/external/python/cpython3/Lib/
Dcopyreg.py156 _extension_registry = {} # key -> code variable
168 if (_extension_registry.get(key) == code and
171 if key in _extension_registry:
173 (key, _extension_registry[key]))
177 _extension_registry[key] = code
183 if (_extension_registry.get(key) != code or
187 del _extension_registry[key]
Dpickle.py28 from copyreg import _extension_registry, _inverted_registry, _extension_cache
965 code = _extension_registry.get((module_name, name))
/external/python/cpython3/Lib/test/
Dtest_copyreg.py59 self.assertTrue(copyreg._extension_registry[mod, func] == code)
89 self.assertNotIn((mod, func), copyreg._extension_registry)
/external/python/cpython2/Lib/test/
Dtest_copy_reg.py60 self.assertTrue(copy_reg._extension_registry[mod, func] == code)
90 self.assertNotIn((mod, func), copy_reg._extension_registry)