[issue44588] Possible double Py_XDECREF in cpython typeobject.c

Petr Viktorin report at bugs.python.org
Tue Jul 20 10:43:57 EDT 2021


Petr Viktorin <encukou at gmail.com> added the comment:

Please use Py_TPFLAGS_DEFAULT when creating objects. Do you have a reason to not do it?


The flag Py_TPFLAGS_HAVE_VERSION_TAG is unneeded and Python should not check for it. There's bpo-42747 open for that already; I sent a PR for it.

----------
nosy: +petr.viktorin

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


More information about the Python-bugs-list mailing list