[Python-Dev] Py3k: Except clause syntax

Greg Ewing greg.ewing at canterbury.ac.nz
Fri Mar 17 01:47:16 CET 2006


Baptiste Carvello wrote:

> what about
> 
>      except <type> with <value>:
> 
> a program dies "with" an error message, not "as" an error message.

No. The exception object you're catching *is* the value,
not something which *has* a value. I maintain that "as"
is the correct word to use here.

Greg


More information about the Python-Dev mailing list