Home
last modified time | relevance | path

Searched refs:extension_cache (Results 1 – 2 of 2) sorted by relevance

/external/python/cpython3/Modules/
D_pickle.c144 PyObject *extension_cache; member
195 Py_CLEAR(st->extension_cache); in _Pickle_ClearState()
252 st->extension_cache = PyObject_GetAttrString(copyreg, "_extension_cache"); in _Pickle_InitState()
253 if (!st->extension_cache) in _Pickle_InitState()
255 if (!PyDict_CheckExact(st->extension_cache)) { in _Pickle_InitState()
258 "not %.200s", Py_TYPE(st->extension_cache)->tp_name); in _Pickle_InitState()
5837 obj = PyDict_GetItemWithError(st->extension_cache, py_code); in load_extension()
5877 code = PyDict_SetItem(st->extension_cache, py_code, obj); in load_extension()
7425 Py_VISIT(st->extension_cache); in pickle_traverse()
/external/python/cpython2/Modules/
DcPickle.c125 static PyObject *extension_cache; variable
4307 obj = PyDict_GetItem(extension_cache, py_code); in load_extension()
4341 code = PyDict_SetItem(extension_cache, py_code, obj); in load_extension()
5917 extension_cache = PyObject_GetAttrString(copyreg, in init_stuff()
5919 if (!extension_cache) return -1; in init_stuff()