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/062516.html below:

[Python-Dev] Py3k: Except clause syntax

[Python-Dev] Py3k: Except clause syntax [Python-Dev] Py3k: Except clause syntaxskip at pobox.com skip at pobox.com
Fri Mar 17 18:27:41 CET 2006
    Skip> try:
    Skip>     foo()
    Skip> except TypeError with msg, KeyError with msg:
    Skip>     print msg

    fuzz> Wasn't the proposal :

    fuzz> try:
    fuzz>     something
    fuzz> except NameError, OtherError as e:
    fuzz>     something...

I'm not sure.  I only saw <SomeError> as|with <SomeValue>.

In your formulation the comma binds more tightly than the as keyword.  In
import statements it's the other way around.  That seems like it might be
a source of confusion.

Skip
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