On 1/26/07, Greg Ewing <[EMAIL PROTECTED]> wrote:
> Collin Winter wrote:
> > Does this language work for you?
> >
> > 2. ``raise E`` (with a single argument) is used to raise a new
> >    exception. This form has two sub-variants: ``E`` may be either an
> >    instance of ``BaseException`` [#pep352]_ or a subclass of
> >    ``BaseException``.
>
> 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)
True

Collin Winter
_______________________________________________
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

Reply via email to