/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 109 if code in copyreg._inverted_registry: 110 self.pair = copyreg._inverted_registry[code] 111 copyreg.remove_extension(self.pair[0], self.pair[1], code) 118 curpair = copyreg._inverted_registry.get(code) 120 copyreg.remove_extension(curpair[0], curpair[1], code) 123 copyreg.add_extension(pair[0], pair[1], code) 1770 copyreg.pickle(pickling_metaclass, pickling_metaclass.__reduce__) 1998 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 4994 self.assertEqual(reduce_value[0], copyreg.__newobj_ex__) 4997 self.assertEqual(reduce_value[0], copyreg.__newobj__) 5010 reduce_value = (copyreg._reconstructor, 5411 import copyreg 5412 expected = (copyreg.__newobj__, (A,), (None, {'spam': 42}), None, None)
|
/external/protobuf/python/google/protobuf/internal/ |
D | testing_refleaks.py | 45 import copy_reg as copyreg #PY26 namespace 47 import copyreg 81 self._saved_pickle_registry = copyreg.dispatch_table.copy() 104 copyreg.dispatch_table.clear() 105 copyreg.dispatch_table.update(self._saved_pickle_registry)
|
/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 | modulefinder.rst | 98 copyreg: _inverted_registry,_slotnames,__all__
|
D | pickle.rst | 352 :func:`copyreg.pickle`. It is a mapping whose keys are classes 360 global dispatch table managed by the :mod:`copyreg` module. 769 The global dispatch table managed by the :mod:`copyreg` module is 770 available as :data:`copyreg.dispatch_table`. Therefore, one may 771 choose to use a modified copy of :data:`copyreg.dispatch_table` as a 778 p.dispatch_table = copyreg.dispatch_table.copy() 786 dispatch_table = copyreg.dispatch_table.copy() 793 :mod:`copyreg` module is :: 795 copyreg.pickle(SomeClass, reduce_SomeClass) 1171 Module :mod:`copyreg`
|
D | copy.rst | 76 pickle functions from the :mod:`copyreg` module.
|
/external/python/cpython3/Lib/test/libregrtest/ |
D | refleak.py | 27 import copyreg 40 ps = copyreg.dispatch_table.copy() 149 import copyreg 154 copyreg.dispatch_table.clear() 155 copyreg.dispatch_table.update(ps)
|
/external/python/cpython3/Lib/ |
D | re.py | 337 import copyreg 342 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 | 1154 PyObject *module, *copyreg; in PyInit_parser() local 1197 copyreg = PyImport_ImportModuleNoBlock("copyreg"); in PyInit_parser() 1198 if (copyreg != NULL) { in PyInit_parser() 1204 func = _PyObject_GetAttrId(copyreg, &PyId_pickle); in PyInit_parser() 1219 Py_DECREF(copyreg); in PyInit_parser()
|
D | _pickle.c | 220 PyObject *copyreg = NULL; in _Pickle_InitState() local 230 copyreg = PyImport_ImportModule("copyreg"); in _Pickle_InitState() 231 if (!copyreg) in _Pickle_InitState() 233 st->dispatch_table = PyObject_GetAttrString(copyreg, "dispatch_table"); in _Pickle_InitState() 243 PyObject_GetAttrString(copyreg, "_extension_registry"); in _Pickle_InitState() 253 PyObject_GetAttrString(copyreg, "_inverted_registry"); in _Pickle_InitState() 262 st->extension_cache = PyObject_GetAttrString(copyreg, "_extension_cache"); in _Pickle_InitState() 271 Py_CLEAR(copyreg); in _Pickle_InitState() 346 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/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 67 dispatch_table = {types.CodeType: pickle_code, **copyreg.dispatch_table}
|
/external/python/cpython3/Objects/ |
D | typeobject.c | 4230 _Py_IDENTIFIER(copyreg); in import_copyreg() 4254 PyObject *copyreg; in _PyType_GetSlotNames() local 4281 copyreg = import_copyreg(); in _PyType_GetSlotNames() 4282 if (copyreg == NULL) in _PyType_GetSlotNames() 4288 slotnames = _PyObject_CallMethodIdOneArg(copyreg, &PyId__slotnames, in _PyType_GetSlotNames() 4290 Py_DECREF(copyreg); in _PyType_GetSlotNames() 4590 PyObject *copyreg; in reduce_newobj() local 4604 copyreg = import_copyreg(); in reduce_newobj() 4605 if (copyreg == NULL) { in reduce_newobj() 4617 newobj = _PyObject_GetAttrId(copyreg, &PyId___newobj__); in reduce_newobj() [all …]
|
/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 | 480 Fix `copyreg._slotnames()` mangled attribute calculation for classes whose
|