<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Mon, May 13, 2013 at 12:17 AM, Steven D'Aprano <span dir="ltr"><<a href="mailto:steve@pearwood.info" target="_blank">steve@pearwood.info</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div id=":2js">with context():<br>
while condition: # or a for loop<br>
block of code goes here<br>
<br>
<br>
If you want something different to this, then I think you do want new syntax. Otherwise, what do you gain beyond what can already be done now?<br>
<br>
Or am I missing something?</div></blockquote></div><br>It's not obvious from my example, but the idea is that the invoker be able to provide context for _each_ iteration.</div><div class="gmail_extra"><br></div><div class="gmail_extra">
Cheers,<br><br clear="all"><div><br></div>-- <br><span style="color:rgb(0,102,0)">Juancarlo </span><b style="color:rgb(0,102,0)">Añez</b>
</div></div>