[Python-Dev] Re: PEP-317

Fred L. Drake, Jr. fdrake@acm.org
Mon, 9 Jun 2003 15:07:16 -0400


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