<p><br>
On Mar 9, 2012 3:04 AM, "Simon Sapin" <<a href="mailto:simon.sapin@kozea.fr">simon.sapin@kozea.fr</a>> wrote:<br>
><br>
> Le 08/03/2012 19:52, Matt Joiner a écrit :<br>
><br>
>> Allow for and while statements to be labelled using "as".<br>
><br>
><br>
> I like the idea. But regardless of whether it should be added at all, I see one issue with the proposition in its current form.<br>
><br>
> The with statement has a variable name after its own "as" keyword. Do loop labels live in the same namespace as variables? Or can I have a variable with the same name as a loop label without the two interfering?</p>

<p>The with statement is not a loop statement and would not be extended, so this is not an issue. </p>
<p>It would be nonsensical to assign to loop labels, so I figure there would be some non trivial checks done when a function is compiled. You raise an interesting point. </p>
<p>><br>
> Regards,<br>
> -- <br>
> Simon Sapin<br>
> _______________________________________________<br>
> Python-ideas mailing list<br>
> <a href="mailto:Python-ideas@python.org">Python-ideas@python.org</a><br>
> <a href="http://mail.python.org/mailman/listinfo/python-ideas">http://mail.python.org/mailman/listinfo/python-ideas</a></p>
<p>I neglected to mention that nested looping often requires a lot of undesirable temporaries and additional state checks. Avoiding this a very common goal, that can be circumvented with the aforementioned constructs. <br>

</p>