[New-bugs-announce] [issue43154] code.InteractiveConsole can crash if sys.excepthook is broken

Carl Friedrich Bolz-Tereick report at bugs.python.org
Sun Feb 7 11:26:30 EST 2021


New submission from Carl Friedrich Bolz-Tereick <cfbolz at gmx.de>:

When using code.InteractiveConsole to implement a Python shell (like PyPy is doing), having a broken sys.excepthook set can crash the console (see attached terminal log). Instead, it should catch errors and report then ignore them (using sys.unraisablehook I would think, but right now it's not that simple to call unraisablehook from python code).

Related to https://bugs.python.org/issue43148

----------
files: crash.log
messages: 386593
nosy: Carl.Friedrich.Bolz
priority: normal
severity: normal
status: open
title: code.InteractiveConsole can crash if sys.excepthook is broken
Added file: https://bugs.python.org/file49797/crash.log

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue43154>
_______________________________________


More information about the New-bugs-announce mailing list