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 r.david.murray
Recipients inducer, r.david.murray
Date 2013-03-14.01:26:47
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1363224408.38.0.826084191476.issue17413@psf.upfronthosting.co.za>
In-reply-to
Content
It looks like a bug in the tracing machinery that has only been revealed by the changes to how tracebacks are interpreted in python3.  It should be a relatively simple fix, but I wonder if there is existing code that depends on the second argument getting turned into a string.

You can hack around the problem by creating a class to wrap around the arg[1] you get that has __cause__ and __context__ attributes, both set to none, and whose __str__ returns the original string.
History
Date User Action Args
2013-03-14 01:26:48r.david.murraysetrecipients: + r.david.murray, inducer
2013-03-14 01:26:48r.david.murraysetmessageid: <1363224408.38.0.826084191476.issue17413@psf.upfronthosting.co.za>
2013-03-14 01:26:48r.david.murraylinkissue17413 messages
2013-03-14 01:26:47r.david.murraycreate