I’m trying to locate the source that sys.excepthook points to in the GitHub repository so I can see the design and how it colors the exceptions, and I’m having a hard time finding it.
sys.excepthook
The implementation of sys.excepthook lives in Python/sysmodule.c:
Python/sysmodule.c