[Python-Dev] PEP 8: mention bare 'except:' (original) (raw)

A.M. Kuchling amk at amk.ca
Fri Dec 22 14:05:47 CET 2006


http://www.python.org/sf/411881 is a bug about removing use of 'except:' in stdlib code. In many cases the intent is to catch one particular exception such as ImportError or AttributeError, but catching all exceptions can disguise other problems.

Should PEP 8 mention this issue? Here's some proposed text for discussion:

--amk



More information about the Python-Dev mailing list