Guido van Rossum <guido@python.org> writes: > I can't see any implementation benefits from the requirement. It > sounds like you can't either If the requirement was extended to disallow multiple root classes, it would disambiguate the case of the class Z(str,Exception): It would be an error to raise an exception of class Z. Classes that only inherit from str would continue to operate as string exceptions, classes that inherit from Exception would be caught by their type - you couldn't have a class that is both. Regards, Martin
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4