cpython: 030205f1e716 (original) (raw)

--- a/Objects/odictobject.c +++ b/Objects/odictobject.c @@ -1030,8 +1030,7 @@ odict_reduce(register PyODictObject od) goto Done; if (!ns_len) { / nothing novel to pickle in od.dict */

@@ -1718,10 +1716,10 @@ odict_new(PyTypeObject *type, PyObject * { PyObject *od = PyDict_Type.tp_new(type, args, kwds); if (od != NULL) {

value = PyODict_GetItem((PyObject )di->di_odict, key); / borrowed */

if (result->ob_refcnt == 1) { /* not in use so we can reuse it @@ -1896,11 +1896,13 @@ odictiter_iternext(odictiterobject *di) } else { result = PyTuple_New(2);

@@ -2365,7 +2367,6 @@ mutablemapping_update(PyObject self, Py else if (PyObject_HasAttrString(other, "keys")) { / never fails */ PyObject *keys, *iterator, *key; keys = PyObject_CallMethod(other, "keys", NULL);

@@ -2383,6 +2384,7 @@ mutablemapping_update(PyObject *self, Py } Py_DECREF(key); }