[Python-Dev] Py3k: Except clause syntax

Russell E. Owen rowen at cesmail.net
Thu Mar 16 22:56:52 CET 2006

In article <4418CDD0.8020803 at canterbury.ac.nz>,
 Greg Ewing <greg.ewing at canterbury.ac.nz> wrote:

> For Py3k, any thoughts on changing the syntax of
> the except clause from
>    except <type>, <value>:
> to
>    except <type> as <value>:
> so that things like
>    except TypeError, ValueError:
> will do what is expected?

Brilliant. I may be showing my clumsiness, but I catch multiple 
exceptions so rarely that I often stumble over this.

-- Russell

More information about the Python-Dev mailing list