Kay Hayen <kay.ha...@gmail.com> added the comment:

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.

----------
nosy: +kayhayen

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue9417>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to