Message102610
Yes, I think what I wrote above applies here: the string is stored in the "args" variable. When the exception is raised, the traceback contains the *live* frame objects, with position in the bytecode and all local variables. This allows post-mortem debugging, for example.
Try calling PyErr_PrintEx(0) instead of PyErr_Print(), this should clear the exception state without storing it in sys.last_traceback, and the reference will decrease. |
|
Date |
User |
Action |
Args |
2010-04-08 09:57:10 | amaury.forgeotdarc | set | recipients:
+ amaury.forgeotdarc, georg.brandl, Krauzi, ysj.ray |
2010-04-08 09:57:10 | amaury.forgeotdarc | set | messageid: <1270720630.47.0.854765621563.issue8336@psf.upfronthosting.co.za> |
2010-04-08 09:57:09 | amaury.forgeotdarc | link | issue8336 messages |
2010-04-08 09:57:08 | amaury.forgeotdarc | create | |
|