[Python-Dev] Py3k: Except clause syntax (original) (raw)
Greg Ewing greg.ewing at canterbury.ac.nz
Sun Mar 19 02:49:40 CET 2006
- Previous message: [Python-Dev] Py3k: Except clause syntax
- Next message: [Python-Dev] Py3k: Except clause syntax
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Nick Coghlan wrote:
So, as a somewhat novel approach, what about putting the "as" before the list of exceptions types?
-1. When you're scanning down a series of except clauses, what you're looking for foremost is the types of exceptions being caught. The bound name is of secondary importance and only relevant to the code in the except clause.
Greg
- Previous message: [Python-Dev] Py3k: Except clause syntax
- Next message: [Python-Dev] Py3k: Except clause syntax
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]