Lines Matching refs:memo
336 PyObject *memo;
347 int fast; /* Fast mode doesn't save in memo, don't use if circ ref */
368 PyObject *memo;
752 if (!( mv = PyDict_GetItem(self->memo, id))) {
761 PyErr_SetString(PicklingError, "no int where int expected in memo");
821 if ((p = PyDict_Size(self->memo)) < 0)
824 /* Make sure memo keys are positive! */
846 if (PyDict_SetItem(self->memo, py_ob_id, t) < 0)
1542 /* id(tuple) isn't in the memo now. If it shows up there after
1545 * its value from the memo.
1555 if (PyDict_GetItem(self->memo, py_tuple_id)) {
1560 /* fetch from memo */
1581 if (PyDict_GetItem(self->memo, py_tuple_id)) {
1595 /* fetch from memo */
2641 if (PyDict_GetItem(self->memo, py_ob_id)) {
2841 if (self->memo)
2842 PyDict_Clear(self->memo);
2874 lm = PyDict_Size(self->memo);
2973 PyDict_Clear(self->memo);
3010 PyDoc_STR("clear_memo() -- Clear the picklers memo")},
3038 self->memo = NULL;
3059 if (!( self->memo = PyDict_New()))
3153 Py_XDECREF(self->memo);
3168 Py_VISIT(self->memo);
3182 Py_CLEAR(self->memo);
3233 if (p->memo == NULL)
3234 PyErr_SetString(PyExc_AttributeError, "memo");
3236 Py_INCREF(p->memo);
3237 return p->memo;
3249 PyErr_SetString(PyExc_TypeError, "memo must be a dictionary");
3252 Py_XDECREF(p->memo);
3254 p->memo = v;
3276 {"memo", (getter)Pickler_get_memo, (setter)Pickler_set_memo},
4203 value = PyDict_GetItem(self->memo, py_str);
4231 value = PyDict_GetItem(self->memo, py_key);
4268 value = PyDict_GetItem(self->memo, py_key);
4363 l=PyDict_SetItem(self->memo, py_str, value);
4384 len=PyDict_SetItem(self->memo, py_key, value);
4413 len=PyDict_SetItem(self->memo, py_key, value);
5476 if (!( self->memo = PyDict_New()))
5540 Py_XDECREF(self->memo);
5564 Py_VISIT(self->memo);
5579 Py_CLEAR(self->memo);
5611 if (!strcmp(name, "memo")) {
5612 if (!self->memo) {
5617 Py_INCREF(self->memo);
5618 return self->memo;
5654 if (strcmp(name, "memo") == 0) {
5657 "memo must be a dictionary");
5660 Py_XDECREF(self->memo);
5661 self->memo = value;