[Python-Dev] Evil reference cycles caused Exception.__traceback__

Victor Stinner victor.stinner at gmail.com
Mon Sep 18 06:18:21 EDT 2017

2017-09-18 12:07 GMT+02:00 Nick Coghlan <ncoghlan at gmail.com>:
> I wonder if it might be reasonable to have tracebacks only hold a weak
> reference to their frame objects when "__debug__ == False".

Please don't change the Python behaviour depending on __debug__, or it
will be a nightmare to debug it :-( ("Why does it work on my


More information about the Python-Dev mailing list