PEP 678: Enriching Exceptions with Notes

Hi all, I've written PEP 678, proposing the addition of a __note__ attribute which can be used to enrich displayed exceptions. This is particularly useful with ExceptionGroup, or where exception chaining is unsuitable, and ensures that 'orphan' output is not produced if the annotated exception is caught. Link to the PEP: https://www.python.org/dev/peps/pep-0678/ *Please, redirect all discussions to:* https://discuss.python.org/t/pep-678-enriching-exceptions-with-notes/13374 Thanks for your time, and to those who have already made (very helpful!) comments! Best wishes from just-moved-to San Francisco, Zac Hatfield-Dodds

On Thu, Jan 27, 2022 at 10:10 AM Zac Hatfield Dodds < zac.hatfield.dodds@gmail.com> wrote:
FYI - The Steering Council reviewed your updates and is **Accepting** the latest iteration of *PEP 678: Enriching Exceptions with Notes*. :grin: A short and sweet reply, we don't have more to add. -gps on behalf of the Python Steering Council

On Thu, Jan 27, 2022 at 10:10 AM Zac Hatfield Dodds < zac.hatfield.dodds@gmail.com> wrote:
FYI - The Steering Council reviewed your updates and is **Accepting** the latest iteration of *PEP 678: Enriching Exceptions with Notes*. :grin: A short and sweet reply, we don't have more to add. -gps on behalf of the Python Steering Council
participants (2)
-
Gregory P. Smith
-
Zac Hatfield Dodds