Home | History | Annotate | Download | only in Modules

Lines Matching refs:memo

338     PyObject *memo;

349 int fast; /* Fast mode doesn't save in memo, don't use if circ ref */
370 PyObject *memo;
722 if (!( mv = PyDict_GetItem(self->memo, id))) {
731 PyErr_SetString(PicklingError, "no int where int expected in memo");
791 if ((p = PyDict_Size(self->memo)) < 0)
794 /* Make sure memo keys are positive! */
816 if (PyDict_SetItem(self->memo, py_ob_id, t) < 0)
1511 /* id(tuple) isn't in the memo now. If it shows up there after
1514 * its value from the memo.
1524 if (PyDict_GetItem(self->memo, py_tuple_id)) {
1529 /* fetch from memo */
1550 if (PyDict_GetItem(self->memo, py_tuple_id)) {
1564 /* fetch from memo */
2609 if (PyDict_GetItem(self->memo, py_ob_id)) {
2809 if (self->memo)
2810 PyDict_Clear(self->memo);
2842 lm = PyDict_Size(self->memo);
2941 PyDict_Clear(self->memo);
2978 PyDoc_STR("clear_memo() -- Clear the picklers memo")},
3006 self->memo
3027 if (!( self->memo = PyDict_New()))
3121 Py_XDECREF(self->memo);
3136 Py_VISIT(self->memo);
3150 Py_CLEAR(self->memo);
3201 if (p->memo == NULL)
3202 PyErr_SetString(PyExc_AttributeError, "memo");
3204 Py_INCREF(p->memo);
3205 return p->memo;
3217 PyErr_SetString(PyExc_TypeError, "memo must be a dictionary");
3220 Py_XDECREF(p->memo);
3222 p->memo = v;
3244 {"memo", (getter)Pickler_get_memo, (setter)Pickler_set_memo},
4168 value = PyDict_GetItem(self->memo, py_str);
4196 value = PyDict_GetItem(self->memo, py_key);
4233 value = PyDict_GetItem(self->memo, py_key);
4328 l=PyDict_SetItem(self->memo, py_str, value);
4349 len=PyDict_SetItem(self->memo, py_key, value);
4378 len=PyDict_SetItem(self->memo, py_key, value);
5441 if (!( self->memo = PyDict_New()))
5505 Py_XDECREF(self->memo);
5529 Py_VISIT(self->memo);
5544 Py_CLEAR(self->memo);
5576 if (!strcmp(name, "memo")) {
5577 if (!self->memo) {
5582 Py_INCREF(self->memo);
5583 return self->memo;
5619 if (strcmp(name, "memo") == 0) {
5622 "memo must be a dictionary");
5625 Py_XDECREF(self->memo);
5626 self->memo = value;