Message358198
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. |
|
Date |
User |
Action |
Args |
2019-12-10 15:37:03 | Christian.Tismer | set | recipients:
+ Christian.Tismer |
2019-12-10 15:37:03 | Christian.Tismer | set | messageid: <1575992223.28.0.659364408655.issue39016@roundup.psfhosted.org> |
2019-12-10 15:37:03 | Christian.Tismer | link | issue39016 messages |
2019-12-10 15:37:03 | Christian.Tismer | create | |
|