[Python-Dev] GeneratorExit inheriting from Exception
Just van Rossum
just at letterror.com
Sun Mar 19 08:05:22 CET 2006
Greg Ewing wrote:
> Barry Warsaw wrote:
>
> > One possible approach is to revert BaseException out of Py2.5,
> > re-position KeyboardInterrupt, and add Error as an alias for
> > StandardError. Then we can encourage people to start using Error
> > as the base classes for their own errors.
>
> Also maybe start issuing warnings whenever you inherit
> directly from Exception.
Ugh. I hate it when it's made (virtually) impossible to write code that
runs warnings-free on both Python X.Y and X.(Y+1).
Just
More information about the Python-Dev
mailing list