[Zope3-dev] Please, no bare 'except:' clauses!
Guido van Rossum
guido@python.org
Sun, 10 Nov 2002 19:29:03 -0500
> * Do not use bare 'except:' clauses. Always qualify them with
> specific exception types.
>
> * If you do need to use a bare 'except:' clause, add a comment
> before it explaining that you used this bare except clause
> mindfully, and explaining the kinds of exception you need to
> catch, and the reason the bare 'except:' clause is needed.
Hear, hear. Bare except is one of the most over-used features of
Python. Let's ban it except for very carefully thought-out and
documented situations.
--Guido van Rossum (home page: http://www.python.org/~guido/)