A RetroSearch Logo

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

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2006-May/064726.html below:

[Python-Dev] more pyref: continue in finally statements

[Python-Dev] more pyref: continue in finally statements [Python-Dev] more pyref: continue in finally statementsFredrik Lundh fredrik at pythonware.com
Mon May 1 20:11:08 CEST 2006
the language reference says:

    continue may only occur syntactically nested in a for or while loop,
    but not nested in a function or class definition or finally statement
    within that loop. /.../

    It may occur within an except or else clause. The restriction on occurring
    in the try clause is implementor's laziness and will eventually be lifted.

and it looks like the new compiler still has the same issue:

    $ python test.py
        File "test.py", line 5:
            continue
    SyntaxError: 'continue' not supported inside 'finally' clause

how hard would it be to fix this ?

(shouldn't the "try clause" in the note read "finally clause", btw?  "continue"
within the "try" suite seem to work just fine...)

</F>



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