[issue43008] IDLE ignores sys.excepthook in normal, subprocess mode

Terry J. Reedy report at bugs.python.org
Sat Jan 23 14:12:55 EST 2021


Terry J. Reedy <tjreedy at udel.edu> added the comment:

Andre: with this patch, you could potentially add a function or submodule that would point sys.excepthook to a function that would print the exception and then interact before returning.  If this worked, one could add, for instance, 'import friendly_traceback.idle' at the top of a file or at a Shell prompt and have friendly-traceback only activate when there is an exception.  So it would work in Shell.

I hope by 3.10 to have IDLE '>>>' prompts moved into a sidebar (instead of line numbers.  F-T prompts would be distinctly different.

----------

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


More information about the Python-bugs-list mailing list