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
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to