Home | History | Annotate | Download | only in Modules

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;
750 if (!( mv = PyDict_GetItem(self->memo, id))) {
759 PyErr_SetString(PicklingError, "no int where int expected in memo");
819 if ((p = PyDict_Size(self->memo)) < 0)
822 /* Make sure memo keys are positive! */
844 if (PyDict_SetItem(self->memo, py_ob_id, t) < 0)
1540 /* id(tuple) isn't in the memo now. If it shows up there after
1543 * its value from the memo.
1553 if (PyDict_GetItem(self->memo, py_tuple_id)) {
1558 /* fetch from memo */
1579 if (PyDict_GetItem(self->memo, py_tuple_id)) {
1593 /* fetch from memo */
2534 /* If the object is already in the memo, this means it is
2536 stack, and fetch the object back from the memo. */
2541 if (PyDict_GetItem(self->memo, py_ob_id)) {
2660 if (PyDict_GetItem(self->memo, py_ob_id)) {
2860 if (self->memo)
2861 PyDict_Clear(self->memo);
2893 lm = PyDict_Size(self->memo);
2992 PyDict_Clear(self->memo);
3029 PyDoc_STR("clear_memo() -- Clear the picklers memo")},
3057 self->memo = NULL;
3078 if (!( self->memo = PyDict_New()))
3172 Py_XDECREF(self->memo);
3187 Py_VISIT(self->memo);
3201 Py_CLEAR(self->memo);
3250 if (p->memo == NULL)
3251 PyErr_SetString(PyExc_AttributeError, "memo");
3253 Py_INCREF(p->memo);
3254 return p->memo;
3266 PyErr_SetString(PyExc_TypeError, "memo must be a dictionary");
3270 Py_XSETREF(p->memo, v);
3292 {"memo", (getter)Pickler_get_memo, (setter)Pickler_set_memo},
4217 value = PyDict_GetItem(self->memo, py_str);
4245 value = PyDict_GetItem(self->memo, py_key);
4282 value = PyDict_GetItem(self->memo, py_key);
4377 l=PyDict_SetItem(self->memo, py_str, value);
4398 len=PyDict_SetItem(self->memo, py_key, value);
4427 len=PyDict_SetItem(self->memo, py_key, value);
5506 if (!( self->memo = PyDict_New()))
5570 Py_XDECREF(self->memo);
5594 Py_VISIT(self->memo);
5609 Py_CLEAR(self->memo);
5641 if (!strcmp(name, "memo")) {
5642 if (!self->memo) {
5647 Py_INCREF(self->memo);
5648 return self->memo;
5682 if (strcmp(name, "memo") == 0) {
5685 "memo must be a dictionary");
5689 Py_XSETREF(self->memo, value);