[issue43154] code.InteractiveConsole can crash if sys.excepthook is broken

2021-04-02 Thread Terry J. Reedy
Terry J. Reedy added the comment: code.InteractiveInterpreter handles SyntaxErrors separately in showsyntaxerror rather than showtraceback. The same problem arises with a bad excepthook in line 129. -- ___ Python tracker

[issue43154] code.InteractiveConsole can crash if sys.excepthook is broken

2021-02-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: unraiseable hook is not needed. The REPL does: >>> sys.excepthook = lambda: None >>> 1/0 Error in sys.excepthook: TypeError: () takes 0 positional arguments but 3 were given Original exception was: Traceback (most recent call last): File "", line 1, in Ze

[issue43154] code.InteractiveConsole can crash if sys.excepthook is broken

2021-02-11 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue43154] code.InteractiveConsole can crash if sys.excepthook is broken

2021-02-07 Thread Julian Berman
Change by Julian Berman : -- nosy: +Julian ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue43154] code.InteractiveConsole can crash if sys.excepthook is broken

2021-02-07 Thread Carl Friedrich Bolz-Tereick
New submission from Carl Friedrich Bolz-Tereick : 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.u