[Python-Dev] GeneratorExit inheriting from Exception

Barry Warsaw barry at python.org
Mon Mar 20 16:33:46 CET 2006


On Sun, 2006-03-19 at 13:49 +1200, Greg Ewing wrote:
> Barry Warsaw wrote:
> 
> > Exception
> > +- KeyboardInterrupt
> > +- GeneratorExit
> > +- SystemExit
> > +- StopIteration
> > +- Error
> > |  +- ImportError
> > |  +- (etc.)
> > |
> > +- Warning
> >    +- UserWarning
> >    +- (etc.)
> 
> +42! This is beautifully clear and simple, especially
> compared to some of the other exception hierarchy
> reorganisations that have been proposed.

I still believe in this, and I'm thankful for the support I've seen.  It
won't happen for Python 2.x, but I do plan on addressing this for Py3K.

-Barry

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 309 bytes
Desc: This is a digitally signed message part
Url : http://mail.python.org/pipermail/python-dev/attachments/20060320/cb317bdf/attachment.pgp 


More information about the Python-Dev mailing list