bpo-45464: Add a warning about subclassing built-in exceptions by pablogsal · Pull Request #28995 · python/cpython
Conversation
| 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
mentioned this pull request
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters