[Python-Dev] Py3k: Except clause syntax

Greg Ewing greg.ewing at canterbury.ac.nz
Sun Mar 19 02:49:40 CET 2006

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.


More information about the Python-Dev mailing list