[Python-Dev] Bare except clauses in PEP 348

Neil Schemenauer nas at arctrix.com
Thu Aug 25 18:33:03 CEST 2005

On Thu, Aug 25, 2005 at 11:58:48AM -0400, Raymond Hettinger wrote:
> Deprecation is only warranted if the interim substitute works --
> AFAICT, there is no other way to broadly catch exceptions not
> derived from Exception.

This seems to get to the heart of the problem.  I'm no fan of bare
excepts but I think we could handle them in 2.x (at least for the
next few releases) by providing a workable alternative and then
strongly discouraging their use (like we do for "from x import *").


More information about the Python-Dev mailing list