Home
last modified time | relevance | path

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

/external/python/cpython2/Modules/
DcPickle.c353 PyObject *fast_memo; member
959 if (self->fast_memo == NULL) { in fast_save_enter()
960 self->fast_memo = PyDict_New(); in fast_save_enter()
961 if (self->fast_memo == NULL) { in fast_save_enter()
969 if (PyDict_GetItem(self->fast_memo, key)) { in fast_save_enter()
978 if (PyDict_SetItem(self->fast_memo, key, Py_None) < 0) { in fast_save_enter()
995 if (PyDict_DelItem(self->fast_memo, key) < 0) { in fast_save_leave()
3080 self->fast_memo = NULL; in newPicklerobject()
3189 Py_XDECREF(self->fast_memo); in Pickler_dealloc()
3204 Py_VISIT(self->fast_memo); in Pickler_traverse()
[all …]
/external/python/cpython3/Modules/
D_pickle.c637 PyObject *fast_memo; member
1105 self->fast_memo = NULL; in _Pickler_New()
1839 if (self->fast_memo == NULL) { in fast_save_enter()
1840 self->fast_memo = PyDict_New(); in fast_save_enter()
1841 if (self->fast_memo == NULL) { in fast_save_enter()
1851 if (PyDict_GetItemWithError(self->fast_memo, key)) { in fast_save_enter()
1865 if (PyDict_SetItem(self->fast_memo, key, Py_None) < 0) { in fast_save_enter()
1882 if (PyDict_DelItem(self->fast_memo, key) < 0) { in fast_save_leave()
4270 Py_XDECREF(self->fast_memo); in Pickler_dealloc()
4283 Py_VISIT(self->fast_memo); in Pickler_traverse()
[all …]