Guido van Rossum writes: > Python usually doesn't care about isinstance relationships but cares > about whether the needed protocol is implemented, and this suggests > that requiring exceptions to subclass Exception is unPythonic. Definiately! > But at other times, the desire to catch bogus arguments to raise > suggests that the subclass requirement might be just fine, and I don't > have a use case that breaks with this requirement (since you can > always use multiple inheritance to make a desirable class raisable). Yeah, but that's really annoying. -Fred -- Fred L. Drake, Jr. <fdrake at acm.org> PythonLabs at Zope Corporation
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