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 ghazel
Recipients akuchling, ghazel, loewis, tim.peters
Date 2008-10-04.23:30:05
SpamBayes Score 0.0035115327
Marked as misclassified No
Message-id <>
Or, being able to remove the references to the locals and globals from 
the traceback would be sufficient.

Something like this:

    raise Exception()
    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
Date User Action Args
2008-10-04 23:30:08ghazelsetrecipients: + ghazel, tim.peters, loewis, akuchling
2008-10-04 23:30:07ghazelsetmessageid: <>
2008-10-04 23:30:06ghazellinkissue1565525 messages
2008-10-04 23:30:05ghazelcreate