have differing refcount semantics. If anyone sees a prettier way to
acheive the same ends, then please go for it.
I think this is the first time I've ever used Py_XINCREF.
PyObject_REPR(w));
break;
}
- if (PyDict_CheckExact(v))
+ if (PyDict_CheckExact(v)) {
x = PyDict_GetItem(v, w);
+ Py_XINCREF(x);
+ }
else {
x = PyObject_GetItem(v, w);
if (x == NULL && PyErr_Occurred()) {
break;
}
}
+ Py_INCREF(x);
}
- Py_INCREF(x);
PUSH(x);
continue;