Message74329
| 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 |
<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: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 |
|