/external/python/cpython3/Lib/test/ |
D | test_copyreg.py | 1 import copyreg 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.add_extension(mod, func, code) # shouldn't blow up [all …]
|
D | pickletester.py | 2 import copyreg 80 if code in copyreg._inverted_registry: 81 self.pair = copyreg._inverted_registry[code] 82 copyreg.remove_extension(self.pair[0], self.pair[1], code) 89 curpair = copyreg._inverted_registry.get(code) 91 copyreg.remove_extension(curpair[0], curpair[1], code) 94 copyreg.add_extension(pair[0], pair[1], code) 1555 copyreg.pickle(pickling_metaclass, pickling_metaclass.__reduce__) 1773 copyreg.add_extension(__name__, "MyList", extcode)
|
D | test_copy.py | 4 import copyreg 51 copyreg.pickle(C, pickle_C, C) 313 copyreg.pickle(C, pickle_C, C)
|
D | test_descr.py | 2 import copyreg 4844 self.assertEqual(reduce_value[0], copyreg.__newobj_ex__) 4847 self.assertEqual(reduce_value[0], copyreg.__newobj__) 4860 reduce_value = (copyreg._reconstructor, 5261 import copyreg 5262 expected = (copyreg.__newobj__, (A,), (None, {'spam': 42}), None, None)
|
/external/python/cpython3/Doc/library/ |
D | copyreg.rst | 1 :mod:`copyreg` --- Register :mod:`pickle` support functions 4 .. module:: copyreg 7 **Source code:** :source:`Lib/copyreg.py` 15 The :mod:`copyreg` module offers a way to define functions used while pickling 51 >>> import copyreg, copy, pickle 60 >>> copyreg.pickle(C, pickle_c)
|
D | persistence.rst | 19 copyreg.rst
|
D | pickle.rst | 332 :func:`copyreg.pickle`. It is a mapping whose keys are classes 340 global dispatch table managed by the :mod:`copyreg` module. 681 The global dispatch table managed by the :mod:`copyreg` module is 682 available as :data:`copyreg.dispatch_table`. Therefore, one may 683 choose to use a modified copy of :data:`copyreg.dispatch_table` as a 690 p.dispatch_table = copyreg.dispatch_table.copy() 698 dispatch_table = copyreg.dispatch_table.copy() 705 :mod:`copyreg` module is :: 707 copyreg.pickle(SomeClass, reduce_SomeClass) 905 Module :mod:`copyreg`
|
D | modulefinder.rst | 98 copyreg: _inverted_registry,_slotnames,__all__
|
D | copy.rst | 75 pickle functions from the :mod:`copyreg` module.
|
/external/python/cpython3/Lib/test/libregrtest/ |
D | refleak.py | 24 import copyreg 33 ps = copyreg.dispatch_table.copy() 121 import gc, copyreg 126 copyreg.dispatch_table.clear() 127 copyreg.dispatch_table.update(ps)
|
/external/python/cpython3/Lib/ |
D | re.py | 319 import copyreg 324 copyreg.pickle(Pattern, _pickle, _compile)
|
D | copy.py | 53 from copyreg import dispatch_table
|
D | pickle.py | 27 from copyreg import dispatch_table 28 from copyreg import _extension_registry, _inverted_registry, _extension_cache
|
/external/python/cpython3/Modules/ |
D | parsermodule.c | 1135 PyObject *module, *copyreg; in PyInit_parser() local 1172 copyreg = PyImport_ImportModuleNoBlock("copyreg"); in PyInit_parser() 1173 if (copyreg != NULL) { in PyInit_parser() 1179 func = _PyObject_GetAttrId(copyreg, &PyId_pickle); in PyInit_parser() 1194 Py_DECREF(copyreg); in PyInit_parser()
|
D | _pickle.c | 210 PyObject *copyreg = NULL; in _Pickle_InitState() local 220 copyreg = PyImport_ImportModule("copyreg"); in _Pickle_InitState() 221 if (!copyreg) in _Pickle_InitState() 223 st->dispatch_table = PyObject_GetAttrString(copyreg, "dispatch_table"); in _Pickle_InitState() 233 PyObject_GetAttrString(copyreg, "_extension_registry"); in _Pickle_InitState() 243 PyObject_GetAttrString(copyreg, "_inverted_registry"); in _Pickle_InitState() 252 st->extension_cache = PyObject_GetAttrString(copyreg, "_extension_cache"); in _Pickle_InitState() 261 Py_CLEAR(copyreg); in _Pickle_InitState() 336 Py_CLEAR(copyreg); in _Pickle_InitState()
|
/external/python/cpython3/Lib/multiprocessing/ |
D | reduction.py | 11 import copyreg 36 _copyreg_dispatch_table = copyreg.dispatch_table
|
/external/python/cpython3/Objects/ |
D | typeobject.c | 4033 _Py_IDENTIFIER(copyreg); in import_copyreg() 4057 PyObject *copyreg; in _PyType_GetSlotNames() local 4084 copyreg = import_copyreg(); in _PyType_GetSlotNames() 4085 if (copyreg == NULL) in _PyType_GetSlotNames() 4091 slotnames = _PyObject_CallMethodIdObjArgs(copyreg, &PyId__slotnames, in _PyType_GetSlotNames() 4093 Py_DECREF(copyreg); in _PyType_GetSlotNames() 4393 PyObject *copyreg; in reduce_newobj() local 4407 copyreg = import_copyreg(); in reduce_newobj() 4408 if (copyreg == NULL) { in reduce_newobj() 4420 newobj = _PyObject_GetAttrId(copyreg, &PyId___newobj__); in reduce_newobj() [all …]
|
/external/protobuf/python/google/protobuf/internal/ |
D | python_message.py | 60 import six.moves.copyreg as copyreg namespace 66 import copy_reg as copyreg namespace 186 copyreg.pickle(cls, lambda obj: (cls, (), obj.__getstate__()))
|
/external/python/cpython2/Doc/library/ |
D | copy_reg.rst | 8 The :mod:`copy_reg` module has been renamed to :mod:`copyreg` in Python 3.
|
/external/python/cpython3/Lib/idlelib/ |
D | rpc.py | 30 import copyreg 68 dispatch_table.update(copyreg.dispatch_table)
|
/external/python/cpython2/Objects/ |
D | typeobject.c | 3276 PyObject *copyreg; in slotnames() local 3291 copyreg = import_copyreg(); in slotnames() 3292 if (copyreg == NULL) in slotnames() 3295 slotnames = PyObject_CallMethod(copyreg, "_slotnames", "O", cls); in slotnames() 3296 Py_DECREF(copyreg); in slotnames() 3317 PyObject *copyreg = NULL, *newobj = NULL, *res = NULL; in reduce_2() local 3456 copyreg = import_copyreg(); in reduce_2() 3457 if (copyreg == NULL) in reduce_2() 3459 newobj = PyObject_GetAttrString(copyreg, "__newobj__"); in reduce_2() 3486 Py_XDECREF(copyreg); in reduce_2() [all …]
|
/external/python/cpython2/Modules/ |
D | cPickle.c | 5877 PyObject *copyreg, *t, *r; in init_stuff() local 5901 if (!( copyreg = PyImport_ImportModule("copy_reg"))) in init_stuff() 5906 dispatch_table = PyObject_GetAttr(copyreg, dispatch_table_str); in init_stuff() 5909 extension_registry = PyObject_GetAttrString(copyreg, in init_stuff() 5913 inverted_registry = PyObject_GetAttrString(copyreg, in init_stuff() 5917 extension_cache = PyObject_GetAttrString(copyreg, in init_stuff() 5921 Py_DECREF(copyreg); in init_stuff()
|
D | parsermodule.c | 3474 PyObject *module, *copyreg; in initparser() local 3513 copyreg = PyImport_ImportModuleNoBlock("copy_reg"); in initparser() 3514 if (copyreg != NULL) { in initparser() 3517 func = PyObject_GetAttrString(copyreg, "pickle"); in initparser() 3532 Py_DECREF(copyreg); in initparser()
|
/external/python/six/documentation/ |
D | index.rst | 560 | ``copyreg`` | :mod:`py2:copy_reg` | :mod:`py3:copyreg` …
|
/external/python/cpython3/Misc/NEWS.d/ |
D | 3.6.3rc1.rst | 481 Fix `copyreg._slotnames()` mangled attribute calculation for classes whose
|