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 amaury.forgeotdarc
Recipients Krauzi, amaury.forgeotdarc, georg.brandl, ysj.ray
Date 2010-04-08.09:57:08
SpamBayes Score 3.0480585e-06
Marked as misclassified No
Message-id <1270720630.47.0.854765621563.issue8336@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2010-04-08 09:57:10amaury.forgeotdarcsetrecipients: + amaury.forgeotdarc, georg.brandl, Krauzi, ysj.ray
2010-04-08 09:57:10amaury.forgeotdarcsetmessageid: <1270720630.47.0.854765621563.issue8336@psf.upfronthosting.co.za>
2010-04-08 09:57:09amaury.forgeotdarclinkissue8336 messages
2010-04-08 09:57:08amaury.forgeotdarccreate