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 kristjan.jonsson
Recipients benjamin.peterson, gregory.p.smith, jnoller, kristjan.jonsson, pitrou, r.david.murray
Date 2009-10-11.14:08:33
SpamBayes Score 8.572931e-06
Marked as misclassified No
Message-id <1255270115.19.0.388912771886.issue7060@psf.upfronthosting.co.za>
In-reply-to
Content
I didn't realize that the traceback was attached to the exception object 
in py3k.  This makes the use of such objects more dangerous because of the  
circular references.  The recommended practice of
exc_type, exc_obj = sys.exc_info()[:2]
is precisely to avoid any "accidents" with the tracebacks.
See also http://mail.python.org/pipermail/python-dev/2005-
August/055251.html
So, can one just clear the __traceback__ member?  That would make sense 
for the unittests, but it would make this manifestation of a GC bug go 
into hiding again.
History
Date User Action Args
2009-10-11 14:08:35kristjan.jonssonsetrecipients: + kristjan.jonsson, gregory.p.smith, pitrou, benjamin.peterson, jnoller, r.david.murray
2009-10-11 14:08:35kristjan.jonssonsetmessageid: <1255270115.19.0.388912771886.issue7060@psf.upfronthosting.co.za>
2009-10-11 14:08:33kristjan.jonssonlinkissue7060 messages
2009-10-11 14:08:33kristjan.jonssoncreate