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 serhiy.storchaka
Recipients Aivar.Annamaa, serhiy.storchaka, terry.reedy
Date 2014-09-14.16:43:38
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1410713018.43.0.441321964688.issue22384@psf.upfronthosting.co.za>
In-reply-to
Content
Error messages are already silenced if sys.stderr is None or closed.

>>> sys.stderr.close()
>>> 1/0
>>> 

>>> sys.stderr = None
>>> 1/0
>>> 

I think that such things as _Errbox are application level solutions. report_callback_exception() is designed to be overwritten for this purpose. Application can decide to pop up message box always, not only when sys.stderr is None, or tracebacks to a log, or add application icon and scrollbar on message box, or output error on special area on main windows.

Definitely it would be good to add something like _Errbox to IDLE. But this will be other issue. This issue is only about "crashing" of default implementation, and if my patch fixes it, I want to commit it and close the issue.
History
Date User Action Args
2014-09-14 16:43:38serhiy.storchakasetrecipients: + serhiy.storchaka, terry.reedy, Aivar.Annamaa
2014-09-14 16:43:38serhiy.storchakasetmessageid: <1410713018.43.0.441321964688.issue22384@psf.upfronthosting.co.za>
2014-09-14 16:43:38serhiy.storchakalinkissue22384 messages
2014-09-14 16:43:38serhiy.storchakacreate