◐ Shell
clean mode source ↗

Message 141367 - Python tracker

If someone is setting sys.excepthook, they are not expecting it to be ignored, so I think there's no reason to preserve existing behaviour. On the other hand, it is easy to customize exception printout by subclassing InteractiveConsole and overriding the showtraceback() method.

aliles, if you want to work on a patch, we have a developer's guide at http://docs.python.org/devguide/.