[Python-Dev] [Python-checkins] Daily reference leaks (d7e490db8d54): sum=61494
Antoine Pitrou
antoine at python.org
Wed Oct 21 12:00:52 EDT 2015
Le 21/10/2015 17:32, Raymond Hettinger a écrit :
>
> Thanks for hunting this down. I had seen the automated reference leak posts
> but didn't suspect that a pure python class would have caused the leak.
Yes, it's a bit baffling at first.
> I'm re-opening https://mail.python.org/pipermail/python-dev/2015-October/141993.html
> and will take a look at it this weekend. If I don't see an obvious fix, I'll revert Joe's patch
> until a correct patch is supplied and reviewed.
Well, the simple workaround is to remove the __slots__ field. I don't
think it matters here, especially for a singleton.
Also, Benjamin's suggestion to make all heap type instances GC-enabled
sounds reasonable to me.
Regards
Antoine.
More information about the Python-Dev
mailing list