A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2006-March/062449.html below:

[Python-Dev] Py3k: Except clause syntax

[Python-Dev] Py3k: Except clause syntax [Python-Dev] Py3k: Except clause syntaxGuido van Rossum guido at python.org
Thu Mar 16 04:58:53 CET 2006
On 3/15/06, 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?

Not a bad idea. The trend seems to be that each use of 'as' is some
kind of assignment to the name after 'as' but the relationship with
the thing before 'as' is different in each case.

--
--Guido van Rossum (home page: http://www.python.org/~guido/)
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4