[issue38617] Using Py_XINCREF to replace Py_INCREF in PyAST_CompileObject

Serhiy Storchaka report at bugs.python.org
Mon Oct 28 11:46:29 EDT 2019


Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:

The filename argument must be non-NULL. The code that uses c_filename requires this.

Py_XDECREF in compiler_free() could be replaced with Py_DECREF. But this is too tiny change which does not have significant effect.

Actually both Py_INCREF and Py_XDECREF could be removed.

----------
nosy: +serhiy.storchaka

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue38617>
_______________________________________


More information about the Python-bugs-list mailing list