[issue8336] PyObject_CallObject - Not "reference-count-neutral"

Ray.Allen report at bugs.python.org
Thu Apr 8 10:02:46 CEST 2010


Ray.Allen <ysj.ray at gmail.com> added the comment:

Yes. I think if the argument object's reference count is increased because of the exception traceback or other cases, it has nothing to do with the PyObject_CallObject itself. Both of the Py_INCREF(arg) and Py_DECREF(arg) will always run once through the PyObject_CallObject() call. 
The “reference-count-neutral” means the code of PyObject_CallObject() itself can guarantee the "reference-count-neutral", but not include the callable called by PyObject_CallObject().

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue8336>
_______________________________________


More information about the Python-bugs-list mailing list