This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients akuchling, ghazel, loewis, tim.peters, vstinner
Date 2009-01-14.00:35:02
SpamBayes Score 0.6347483
Marked as misclassified No
Message-id <>
I wrote a patch to support <traceback object>.tb_frame=None. It works 
but the traceback becomes useless because you have unable to display 
the traceback. The frame is used by tb_printinternal() to get the 
filename (co_filename) and the code name (co_name).

I also tried:
    while tbi:
        frame = tbi.tb_frame
        tbi = tbi.tb_next

... and it doesn't work because the tbi variable is also removed!

A traceback object have to contain the full frame, but the frame 
contains "big" objects eating your memory. A solution to your initial 
problem (store exceptions) is to not store the traceback object or at 
least to store it as a (list of) string. Solution already proposed by 
loewis (msg29999).
Date User Action Args
2009-01-14 00:35:03vstinnersetrecipients: + vstinner, tim.peters, loewis, akuchling, ghazel
2009-01-14 00:35:03vstinnersetmessageid: <>
2009-01-14 00:35:03vstinnerlinkissue1565525 messages
2009-01-14 00:35:02vstinnercreate