[Python-Dev] PEP 340: propose to get rid of 'as' keyword
Fredrik Lundh
fredrik at pythonware.com
Thu May 5 10:11:32 CEST 2005
Gustavo J. A. M. Carneiro wrote:
> In that case,
>
> block VAR1 in EXPR1:
> BLOCK1
>
> And now I see how using 'for' statements (perhaps slightly changed)
> turned up in the discussion.
you're moving through this discussion exactly backwards; the current
proposal stems from the observation that "for-loop plus generators" in
today's Python does in fact provide a block implementation that solves
many use cases in an elegant way.
PEP 340 builds on this, sorts out a couple of weak points in the current
design, and adds an elegant syntax for most remaining use cases.
</F>
More information about the Python-Dev
mailing list