[Python-Dev] PEP 348 (exception reorg) revised again
Guido van Rossum
gvanrossum at gmail.com
Mon Aug 15 21:36:29 CEST 2005
On 8/15/05, Scott David Daniels <Scott.Daniels at acm.org> wrote:
> An argument _for_ TerminatingException as a class is that I can
> define my own subclasses of TerminatingException without forcing
> it to being a subclass of KeyboardInterrupt or SystemExit.
And how would that help you? Would your own exceptions be more like
SystemExit or more like KeyboardInterrupt, or neither? If you mean
them to be excluded by base "except:", you can always subclass
BaseException, which exists for this purpose.
--
--Guido van Rossum (home page: http://www.python.org/~guido/)
More information about the Python-Dev
mailing list