Message74329
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 |
|
Date |
User |
Action |
Args |
2008-10-04 23:30:08 | ghazel | set | recipients:
+ ghazel, tim.peters, loewis, akuchling |
2008-10-04 23:30:07 | ghazel | set | messageid: <1223163007.73.0.21848688563.issue1565525@psf.upfronthosting.co.za> |
2008-10-04 23:30:06 | ghazel | link | issue1565525 messages |
2008-10-04 23:30:05 | ghazel | create | |
|