Movatterモバイル変換


[0]ホーム

URL:


[Python-Dev] Bare except clauses in PEP 348

Guido van Rossumgvanrossum at gmail.com
Wed Aug 24 03:30:20 CEST 2005


On 8/23/05, Raymond Hettinger <raymond.hettinger at verizon.net> wrote:> The latest version of PEP 348 still proposes that a bare except clause> will default to Exception instead of BaseException.  Initially, I had> thought that might be a good idea but now think it is doomed and needs> to be removed from the PEP.If we syntactically enforce that the bare except, if present, must belast, would that remove your objection? I agree that a bare except inthe middle is an anomaly, but that doesn't mean we can't keep bareexcept: as a shorthand for except Exception:.-- --Guido van Rossum (home page:http://www.python.org/~guido/)


More information about the Python-Devmailing list

[8]ページ先頭

©2009-2025 Movatter.jp