Collin Winter wrote:
> On 1/26/07, Greg Ewing <[EMAIL PROTECTED]> wrote:
>> That wording doesn't seem to cover the case where
>> E is an instance of a subclass of BaseException.
>
>>>> class A: pass
>>>> class B(A): pass
>>>> isinstance(B(), A)
Technically I suppose it's right, but it doesn't sound
very clear to me.
Maybe something like
E may be an exception class or an instance of an
exception class. Valid exception classes are
BaseException and its subclasses.
--
Greg
_______________________________________________
Python-3000 mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-3000
Unsubscribe:
http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com