[issue1469629] __dict__ = self in subclass of dict causes a memory leak?

Hrvoje Nikšić report at bugs.python.org
Wed Mar 7 13:52:30 CET 2012


Hrvoje Nikšić <hniksic at gmail.com> added the comment:

Could this patch please be committed to Python? We have just run into this problem in production, where our own variant of AttrDict was shown to be leaking.

It is possible to work around the problem by implementing explicit __getattr__ and __setattr__, but that is both slower and trickier to get right.

----------
nosy: +hniksic

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue1469629>
_______________________________________


More information about the Python-bugs-list mailing list