[Python-Dev] Py3k: Except clause syntax

Georg Brandl g.brandl at gmx.net
Thu Mar 16 12:48:25 CET 2006


Greg Ewing 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?

+1. Fits well with the current use of "as".

Georg



More information about the Python-Dev mailing list