[issue42522] [C API] Add _Py_Borrow() private function: call Py_XDECREF() and return the object

STINNER Victor report at bugs.python.org
Tue Dec 1 09:34:13 EST 2020


STINNER Victor <vstinner at python.org> added the comment:

> BTW. Have you considered using coccinelle <https://coccinelle.gitlabpages.inria.fr/website/> instead of a python script?

I wrote Python code just because I like Python. There are likely other more advanced tools like coccinelle, but Python users are more used to install Python scripts and Python is portable.

----------

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


More information about the Python-bugs-list mailing list