Movatterモバイル変換
[0]ホーム
[Python-Dev] Bare except clauses in PEP 348
Guido van Rossumgvanrossum at gmail.com
Thu Aug 25 02:28:35 CEST 2005
On 8/24/05, Michael Hudson <mwh at python.net> wrote:> I really hope string exceptions can be killed off before 3.0. They> should be fully deprecated in 2.5.But what about class exceptions that don't inherit from Exception?That will take a while before we can deprecate that.Anyway, there have been plenty of cases where I was only interested incatching arbitrary exceptions generated by *Python* (as opposed tobroken 3rd party code or even obscure Python library code) and thoseall inherit from Exception. And in those cases I've written "exceptException:" and so far never regretted it.-- --Guido van Rossum (home page:http://www.python.org/~guido/)
More information about the Python-Devmailing list
[8]ページ先頭