/third_party/python/Lib/test/ |
H A D | test_copyreg.py | 1 import copyreg namespace 35 self.assertRaises(TypeError, copyreg.pickle, 39 self.assertRaises(TypeError, copyreg.pickle, 43 self.assertRaises(TypeError, copyreg.pickle, 55 self.assertRaises(ValueError, copyreg.remove_extension, 57 copyreg.add_extension(mod, func, code) 59 self.assertTrue(copyreg._extension_registry[mod, func] == code) 60 self.assertTrue(copyreg._inverted_registry[code] == (mod, func)) 62 self.assertNotIn(code, copyreg._extension_cache) 64 copyreg [all...] |
H A D | test_copy.py | 4 import copyreg namespace 52 copyreg.pickle(C, pickle_C, C) 317 copyreg.pickle(C, pickle_C, C)
|
H A D | pickletester.py | 3 import copyreg namespace 119 if code in copyreg._inverted_registry: 120 self.pair = copyreg._inverted_registry[code] 121 copyreg.remove_extension(self.pair[0], self.pair[1], code) 128 curpair = copyreg._inverted_registry.get(code) 130 copyreg.remove_extension(curpair[0], curpair[1], code) 133 copyreg.add_extension(pair[0], pair[1], code) 1938 copyreg.pickle(pickling_metaclass, pickling_metaclass.__reduce__) 2186 # Register a type with copyreg, with extension code extcode. Pickle 2193 copyreg [all...] |
H A D | test_descr.py | 2 import copyreg namespace 5135 self.assertEqual(reduce_value[0], copyreg.__newobj_ex__) 5138 self.assertEqual(reduce_value[0], copyreg.__newobj__) 5151 reduce_value = (copyreg._reconstructor, 5552 import copyreg namespace 5553 expected = (copyreg.__newobj__, (A,), (None, {'spam': 42}), None, None)
|
/third_party/protobuf/python/google/protobuf/internal/ |
H A D | testing_refleaks.py | 45 import copy_reg as copyreg #PY26 namespace 47 import copyreg namespace 81 self._saved_pickle_registry = copyreg.dispatch_table.copy() 104 copyreg.dispatch_table.clear() 105 copyreg.dispatch_table.update(self._saved_pickle_registry)
|
/third_party/python/Lib/test/libregrtest/ |
H A D | refleak.py | 29 import copyreg namespace 42 ps = copyreg.dispatch_table.copy() 153 import copyreg namespace 158 copyreg.dispatch_table.clear() 159 copyreg.dispatch_table.update(ps)
|
/third_party/python/Lib/re/ |
H A D | __init__.py | 327 import copyreg namespace 332 copyreg.pickle(Pattern, _pickle, _compile)
|
/third_party/PyYAML/lib/yaml/ |
H A D | representer.py | 8 import datetime, copyreg, types, base64, collections namespace 314 if cls in copyreg.dispatch_table: 315 reduce = copyreg.dispatch_table[cls](data)
|
/third_party/python/Lib/multiprocessing/ |
H A D | reduction.py | 11 import copyreg namespace 36 _copyreg_dispatch_table = copyreg.dispatch_table
|
/third_party/python/Lib/idlelib/ |
H A D | rpc.py | 30 import copyreg namespace 67 dispatch_table = {types.CodeType: pickle_code, **copyreg.dispatch_table}
|
/third_party/python/Objects/ |
H A D | typeobject.c | 4888 We fall back to helpers in copyreg for: 4897 /* Try to fetch cached copy of copyreg from sys.modules first in an in import_copyreg() 4902 PyObject *copyreg_module = PyImport_GetModule(&_Py_ID(copyreg)); in import_copyreg() 4909 return PyImport_Import(&_Py_ID(copyreg)); in import_copyreg() 4915 PyObject *copyreg; in _PyType_GetSlotNames() local 4940 copyreg = import_copyreg(); in _PyType_GetSlotNames() 4941 if (copyreg == NULL) in _PyType_GetSlotNames() 4944 /* Use _slotnames function from the copyreg module to find the slots in _PyType_GetSlotNames() 4948 copyreg, &_Py_ID(_slotnames), (PyObject *)cls); in _PyType_GetSlotNames() 4949 Py_DECREF(copyreg); in _PyType_GetSlotNames() 5272 PyObject *copyreg; reduce_newobj() local 5384 PyObject *copyreg, *res; _common_reduce() local [all...] |
/third_party/python/Lib/ |
H A D | copy.py | 53 from copyreg import dispatch_table
|
H A D | pickle.py | 3 See module copyreg for a mechanism for registering custom picklers. 27 from copyreg import dispatch_table 28 from copyreg import _extension_registry, _inverted_registry, _extension_cache 564 # copyreg.dispatch_table
|
/third_party/python/Modules/ |
H A D | _pickle.c | 159 /* copyreg.dispatch_table, {type_object: pickling_function} */ 164 /* copyreg._extension_registry, {(module_name, function_name): code} */ 166 /* copyreg._extension_cache, {code: object} */ 168 /* copyreg._inverted_registry, {code: (module_name, function_name)} */ 233 PyObject *copyreg = NULL; in _Pickle_InitState() local 242 copyreg = PyImport_ImportModule("copyreg"); in _Pickle_InitState() 243 if (!copyreg) in _Pickle_InitState() 245 st->dispatch_table = PyObject_GetAttrString(copyreg, "dispatch_table"); in _Pickle_InitState() 250 "copyreg in _Pickle_InitState() [all...] |
/third_party/python/Include/internal/ |
H A D | pycore_global_strings.h | 245 STRUCT_FOR_ID(copyreg)
|
H A D | pycore_runtime_init.h | 868 INIT_ID(copyreg), \
|