[Python-Dev] PEP 8: mention bare 'except:' (original) (raw)
Brett Cannon brett at python.org
Fri Dec 22 21:15:23 CET 2006
- Previous message: [Python-Dev] PEP 8: mention bare 'except:'
- Next message: [Python-Dev] multiple interpreters and extension modules
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 12/22/06, A.M. Kuchling <amk at amk.ca> wrote:
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 othter problems.
Should PEP 8 mention this issue?
Yes.
-Brett
- Previous message: [Python-Dev] PEP 8: mention bare 'except:'
- Next message: [Python-Dev] multiple interpreters and extension modules
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]