Author ghazel
Recipients akuchling, ghazel, loewis, tim.peters
Date 2008-10-04.23:30:05
SpamBayes Score 0.00351153
Marked as misclassified No
Message-id <1223163007.73.0.21848688563.issue1565525@psf.upfronthosting.co.za>
In-reply-to
Content
Or, being able to remove the references to the locals and globals from 
the traceback would be sufficient.

Something like this:

try:
    raise Exception()
except:
    t, v, tb = sys.exc_info()
    tbi = tb
    while tbi:
        tbi.tb_frame.f_locals = None
        tbi.tb_frame.f_globals = None
        tbi = tbi.tb_next
    # now "tb" is cleaned of references
History
Date User Action Args
2008-10-04 23:30:08ghazelsetrecipients: + ghazel, tim.peters, loewis, akuchling
2008-10-04 23:30:07ghazelsetmessageid: <1223163007.73.0.21848688563.issue1565525@psf.upfronthosting.co.za>
2008-10-04 23:30:06ghazellinkissue1565525 messages
2008-10-04 23:30:05ghazelcreate