[issue6116] frame.f_locals keeps references to things for too long

Antoine Pitrou report at bugs.python.org
Fri May 6 18:58:19 CEST 2011


Antoine Pitrou <pitrou at free.fr> added the comment:

Le jeudi 05 mai 2011 à 18:45 +0000, Facundo Batista a écrit :
> 
> Antoine, to see if I understood correctly... if we build the dict, and
> just return it but don't save it in the frame, this leak would be
> solved? (yes, it'd be slower because everytime it's asked, it'd need
> to be built again)

I would let Jean-Paul confirm the answer, but: yes.

----------

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


More information about the Python-bugs-list mailing list