Message74405
| Author |
vstinner |
| Recipients |
benjamin.peterson, ghazel, vstinner |
| Date |
2008年10月06日.22:52:24 |
| SpamBayes Score |
7.3367873e-06 |
| Marked as misclassified |
No |
| Message-id |
<1223333545.52.0.359177177629.issue4034@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
Instead of converting tb_frame attribute to read only, I prefer to
allow the user to clear the traceback to free some memory bytes. So I
wrote a different patch.
marge$ ./python
Python 2.7a0 (trunk:66786M, Oct 7 2008, 00:48:32)
>>> try:
... a
... except:
... import sys
... t, v, tb = sys.exc_info()
...
>>> tb
<traceback object at 0xb7c76edc>
>>> tb.tb_frame
<frame object at 0x81cdbec>
>>> tb.tb_frame=42
>>> tb.tb_frame
42
>>> tb.tb_frame=None
>>> |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2008年10月06日 22:52:25 | vstinner | set | recipients:
+ vstinner, ghazel, benjamin.peterson |
| 2008年10月06日 22:52:25 | vstinner | set | messageid: <1223333545.52.0.359177177629.issue4034@psf.upfronthosting.co.za> |
| 2008年10月06日 22:52:24 | vstinner | link | issue4034 messages |
| 2008年10月06日 22:52:24 | vstinner | create |
|