[Python-Dev] GeneratorExit inheriting from Exception
Greg Ewing
greg.ewing at canterbury.ac.nz
Mon Mar 20 03:16:43 CET 2006
Just van Rossum wrote:
> Greg Ewing wrote:
>
> > 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).
Yes, that could be a problem. Maybe there could be a
__future__ import which says "I know about the new
exception scheme, trust me when I inherit from
Exception."
Greg
More information about the Python-Dev
mailing list