◐ Shell
clean mode source ↗

bpo-45464: Add a warning about subclassing built-in exceptions by pablogsal · Pull Request #28995 · python/cpython

Conversation

ambv

exceptions so that the final line of the traceback always shows the last
exception that was raised.

.. warning:: Creating a subclass that inherits from multiple exceptions may not

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I still prefer the warning because I think this should have more visibility and he have done this in the past for exactly this reason. In any case, I am happy to take a suggestion on how to make this more affirmative while keeping it visible.

@ambv ambv mentioned this pull request

Oct 20, 2021

Labels