[issue9369] const char* for PyObject_CallMethod and PyObject_CallFunction

Lars Buitinck report at bugs.python.org
Wed Jan 9 17:01:17 CET 2013


Lars Buitinck added the comment:

Oops, forgot to save changes to Doc/c-api/object.rst.

PyObject_CallMethodObjArgs takes a PyObject*, mustn't that be non-const for reference counting to work?

PyDict_GetItemString already has const, just not in refcounts.dat. Fixed.

----------
Added file: http://bugs.python.org/file28656/constness.patch

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


More information about the Python-bugs-list mailing list