Home
last modified time | relevance | path

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

/external/python/cpython3/Modules/
D_pickle.c154 PyObject *extension_cache; member
205 Py_CLEAR(st->extension_cache); in _Pickle_ClearState()
262 st->extension_cache = PyObject_GetAttrString(copyreg, "_extension_cache"); in _Pickle_InitState()
263 if (!st->extension_cache) in _Pickle_InitState()
265 if (!PyDict_CheckExact(st->extension_cache)) { in _Pickle_InitState()
268 "not %.200s", Py_TYPE(st->extension_cache)->tp_name); in _Pickle_InitState()
6333 obj = PyDict_GetItemWithError(st->extension_cache, py_code); in load_extension()
6379 code = PyDict_SetItem(st->extension_cache, py_code, obj); in load_extension()
7974 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()