On Thu, Feb 19, 2009 at 5:15 PM, Greg Ewing <span dir="ltr"><<a href="mailto:greg.ewing@canterbury.ac.nz" target="_blank">greg.ewing@canterbury.ac.nz</a>></span> wrote:<br><div class="gmail_quote"><div class="Ih2E3d">
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

I want something that means "Do what that stuff<br>
would have done if I'd written it all out right<br>
here." Anyone got a really good thesaurus handy?<br>
</blockquote></div><div><br></div></div><div class="gmail_quote"><div>"Macro".<br><br></div></div><div class="gmail_quote"><div>I wonder if this isn't going in the wrong direction. This syntax change is being considered because there's no way to change the control flow inside of a function (so that, for example, we can yield multiple items) besides using one of the existing statements or executing some other function. If there were, one could just write:<br>

<br>from itertools import yield_from<br><br>yield_all_from(gen)<br><br>or whatever.<br><br>With functions the lack of external regulation on control flow doesn't seem to be a big deal, but apparently for generators it is… So maybe we need to think more clearly about what kinds of control flow changes are appropriate for generators… Is yield from really going to solve all our problems? Or will we be back for a new keyword in 6 months?<br>

<br>Inconclusively-yours,<br><br>-- Carl<br></div></div>
<br>