Movatterモバイル変換


[0]ホーム

URL:


[Python-Dev] PEP,take 2: Exception Reorganization for Python 3.0

Brett Cannonbcannon at gmail.com
Wed Aug 3 19:29:45 CEST 2005


On 8/3/05, Phillip J. Eby <pje at telecommunity.com> wrote:> 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.Eh, I am not so hot on this idea.  I see your argument, Phillip, but Ijust don't think it will be useful enough to warrant its introduction. Could add to the exceptions module, though.-Brett


More information about the Python-Devmailing list

[8]ページ先頭

©2009-2025 Movatter.jp