This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Christian.Tismer
Recipients Christian.Tismer
Date 2019-12-10.15:37:03
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1575992223.28.0.659364408655.issue39016@roundup.psfhosted.org>
In-reply-to
Content
By the new Py_TPFLAGS_METHOD_DESCRIPTOR flag, a new code path is
activated, and when extension types like PySide create a new
class, we observe negative refcounts.

The reason is that the code in typeobject.c fkt. type_mro_modified
calls lookup_maybe_method which returns a _borrowed_ reference.
This happens in the "if (custom) {" branch.

Removing all Py_XDECREF calls from the function fixes that.
History
Date User Action Args
2019-12-10 15:37:03Christian.Tismersetrecipients: + Christian.Tismer
2019-12-10 15:37:03Christian.Tismersetmessageid: <1575992223.28.0.659364408655.issue39016@roundup.psfhosted.org>
2019-12-10 15:37:03Christian.Tismerlinkissue39016 messages
2019-12-10 15:37:03Christian.Tismercreate