Movatterモバイル変換
[0]ホーム
[Python-Dev] Bare except clauses in PEP 348
Barry Warsawbarry at python.org
Wed Aug 24 21:21:47 CEST 2005
On Wed, 2005-08-24 at 15:15, Raymond Hettinger wrote:> Hmm, that may not be a killer. I wonder if it is possible to treat> BaseException as a constant (like we do with None) and teach the> compiler to interpret it as catching anything that gets raised so that> "except BaseException" will work like a bare except clause does now.Sorry Raymond, but my first reaction is "ick" :). That seems to be abig change in the semantics of exception matching. I think I'd ratherkeep bare except than add that!-Barry-------------- next part --------------A non-text attachment was scrubbed...Name: not availableType: application/pgp-signatureSize: 307 bytesDesc: This is a digitally signed message partUrl :http://mail.python.org/pipermail/python-dev/attachments/20050824/f1600681/attachment-0001.pgp
More information about the Python-Devmailing list
[8]ページ先頭