Skip to content

Conversation

moritzvonberg
Copy link

@moritzvonberg moritzvonberg commented Sep 10, 2025

Changed the phrasing of the section of sys.excepthook docs to be clearer.

This phrasing seems less prone to misunderstanding IMO.


📚 Documentation preview 📚: https://cpython-previews--138723.org.readthedocs.build/

@python-cla-bot
Copy link

python-cla-bot bot commented Sep 10, 2025

All commit authors signed the Contributor License Agreement.

CLA signed

@MeGaGiGaGon
Copy link
Contributor

For more context, while helping Mortiz in the Python discord, we both got stumped by this section of the docs. The issue with the existing phrasing is that there are two hook types - exception hooks and audit hooks. Since the last paragraph is not clear about which hook gets suppressed, we originally though it meant that the exception hook gets suppressed. This PR makes it clear that only the audit hooks have this special behavior around RuntimeErrors, and not the exception hooks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting review docs Documentation in the Doc dir skip news
Projects
Status: Todo
Development

Successfully merging this pull request may close these issues.

2 participants