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 kayhayen
Recipients BreamoreBoy, andrea.corbellini, belopolsky, daniel.urban, dstanek, georg.brandl, kayhayen, kristjan.jonsson, pitrou, terry.reedy, warp10, ysj.ray
Date 2020-04-25.10:58:24
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1587812304.31.0.889312819693.issue9417@roundup.psfhosted.org>
In-reply-to
Content
Today I changed my reference count tests to not use debug Python and came across this issue.

From my testing, Python3.4 is the first affected version, Python3.3 was still fine, so were 2.7 and 2.6. 

This leaks:

def simpleFunction39():
    class Parent(str):
        pass

This does not:

def simpleFunction39():
    class Parent(object):
        pass

When comparing (or attempted to) gc.get_objects() before and after, I was unable to point to any count that would be different, that was confusing. I can rule out a mistake in my changes to how the counts are achieved, because every other reference count test works.
History
Date User Action Args
2020-04-25 10:58:24kayhayensetrecipients: + kayhayen, georg.brandl, terry.reedy, belopolsky, pitrou, kristjan.jonsson, dstanek, andrea.corbellini, daniel.urban, ysj.ray, BreamoreBoy, warp10
2020-04-25 10:58:24kayhayensetmessageid: <1587812304.31.0.889312819693.issue9417@roundup.psfhosted.org>
2020-04-25 10:58:24kayhayenlinkissue9417 messages
2020-04-25 10:58:24kayhayencreate