[issue1565525] tracebacks eat up memory by holding references to locals and globals when they are not wanted

Greg Hazel report at bugs.python.org
Sat Jun 26 07:14:34 CEST 2010


Greg Hazel <ghazel at users.sourceforge.net> added the comment:

It depends on how you look at it. Those two issues describe the surprising behavior of the same references I'm talking about here, when the lifetime of the traceback reference is only inside the same frame. This ticket describes the surprising behavior of those references when the lifetime of the traceback is any number of frames. My example eat_memory.py is much closer to the issue described in those links - the lifetime of the traceback object is insignificantly one frame higher, not the lifetime of the application.

Either way, a feature to discard those references would resolve both.

----------

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


More information about the Python-bugs-list mailing list