Movatterモバイル変換


[0]ホーム

URL:


[Python-Dev] PEP 348 (exception reorg) revised again

Guido van Rossumgvanrossum 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 likeSystemExit or more like KeyboardInterrupt, or neither? If you meanthem to be excluded by base "except:", you can always subclassBaseException, which exists for this purpose.-- --Guido van Rossum (home page:http://www.python.org/~guido/)


More information about the Python-Devmailing list

[8]ページ先頭

©2009-2025 Movatter.jp