[Python-Dev] PEP, take 2: Exception Reorganization for Python 3.0
Phillip J. Eby
pje at telecommunity.com
Wed Aug 3 15:24:27 CEST 2005
At 11:10 PM 8/3/2005 +1000, Nick Coghlan wrote:
> New exceptions:
> - Raisable (new base)
> - ControlFlow (inherits from Raisable)
> - CriticalError (inherits from Raisable)
> - GeneratorExit (inherits from ControlFlow)
> Added inheritance:
> - Exception from Raisable
> - StopIteration, SystemExit, KeyboardInterrupt from ControlFlow
> - SystemError, MemoryError from CriticalError
+1
I'd also like to see a "Reraisable" or something like that to cover both
CriticalError and ControlFlow, but it could be a tuple of those two bases
rather than a class. But that's just a "would be nice" feature.
More information about the Python-Dev
mailing list