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 terry.reedy
Recipients miss-islington, terry.reedy
Date 2018-06-22.02:52:14
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1529635934.97.0.56676864532.issue33905@psf.upfronthosting.co.za>
In-reply-to
Content
(My initial messages contained a mistaken idea based on a mis-remembering the details sys.last values and exceptions.)

If an exception is not caught and a traceback is printed, sys.last_type, sys.last_value, and sys.last_traceback are set.  When an exception is caught, the last_ x values are not touched, but the same are available by calling sys.exc_info.  Stackview accessed all 3 sys.last_x values, but they are not normally set when testing because exception are caught.  The test sets them from a sys.exc_info after catching an exception.
History
Date User Action Args
2018-06-22 02:52:14terry.reedysetrecipients: + terry.reedy, miss-islington
2018-06-22 02:52:14terry.reedysetmessageid: <1529635934.97.0.56676864532.issue33905@psf.upfronthosting.co.za>
2018-06-22 02:52:14terry.reedylinkissue33905 messages
2018-06-22 02:52:14terry.reedycreate