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 Claudiu.Popa
Recipients Claudiu.Popa, r.david.murray
Date 2014-09-30.11:28:58
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1412076539.24.0.326910714196.issue22522@psf.upfronthosting.co.za>
In-reply-to
Content
It seems that sys.excepthook doesn't receive the traceback when an error occurs during a code.InteractiveInterpreter run. The problem is here: https://hg.python.org/cpython/file/5ade1061fa3d/Lib/code.py#l168. last_tb was previously set to None right before. The attached patch passes sys.last_traceback to sys.excepthook.
History
Date User Action Args
2014-09-30 11:28:59Claudiu.Popasetrecipients: + Claudiu.Popa, r.david.murray
2014-09-30 11:28:59Claudiu.Popasetmessageid: <1412076539.24.0.326910714196.issue22522@psf.upfronthosting.co.za>
2014-09-30 11:28:59Claudiu.Popalinkissue22522 messages
2014-09-30 11:28:59Claudiu.Popacreate