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

[Python-Dev] elimination of scope bleeding ofiteration variables

[Python-Dev] elimination of scope bleeding ofiteration variables [Python-Dev] elimination of scope bleeding ofiteration variablesDelaney, Timothy (Tim) tdelaney at avaya.com
Tue May 2 00:52:01 CEST 2006
Greg Ewing wrote:

>    for x in stuff:
>      for x in otherstuff:
>        dosomethingelse(x)
> 
> would be a SyntaxError because the inner loop
> is trying to use x while it's still in use by the
> outer loop.

So would this also be a SyntaxError?

    for x in stuff:
        x = somethingelse

Tim Delaney
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