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 Trundle
Recipients Trundle, benjamin.peterson, brtzsnr
Date 2009-03-23.21:18:52
SpamBayes Score 1.5160644e-05
Marked as misclassified No
Message-id <1237843176.56.0.950602149117.issue5543@psf.upfronthosting.co.za>
In-reply-to
Content
Is the fix really correct? The documentation clearly states about
`sys.last_type`: "These three variables are not always defined; they are set
when an exception is not handled and the interpreter prints an error
message and a stack traceback." And there is already
`traceback.print_exc()`, which is a shorthand for
"print_exception(sys.exc_type, sys.exc_value, sys.exc_traceback, limit,
file)". So, in my opinion, the previous behaviour was intended behaviour,
and the OP needs to use `traceback.print_exc()`.
History
Date User Action Args
2009-03-23 21:19:36Trundlesetrecipients: + Trundle, benjamin.peterson, brtzsnr
2009-03-23 21:19:36Trundlesetmessageid: <1237843176.56.0.950602149117.issue5543@psf.upfronthosting.co.za>
2009-03-23 21:18:52Trundlelinkissue5543 messages
2009-03-23 21:18:52Trundlecreate