A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2003-October/039373.html below:

[Python-Dev] PEP 289: Generator Expressions

[Python-Dev] PEP 289: Generator Expressions [Python-Dev] PEP 289: Generator ExpressionsRaymond Hettinger python at rcn.com
Thu Oct 23 10:58:02 EDT 2003
[Guido]
> I've checked in an update to Raymond's PEP 289 which (I hope)
> clarifies a lot of things, and settles the capturing of free
> variables.

Nice edits.

I'm unclear on the meaning of the last line in detail #3, "(Loop
variables may also use constructs like x[i] or x.a; this form may be
deprecated.)"

Does this mean that "(x.a for x in mylist)" will initiatly be valid but
will someday break?  If so, I can't imagine why.  Or does in mean that
the induction variable can be in that form, "(x for x.a in mylist)".
Surely, this would never be allowed.

 
> Raymond, please take this to c.l.py for feedback!  Wear asbestos. :-)

Will do.


Raymond Hettinger


More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4