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/038946.html below:

[Python-Dev] generator comprehension syntax, was: accumulator display syntax

[Python-Dev] generator comprehension syntax, was: accumulator display syntax [Python-Dev] generator comprehension syntax, was: accumulator display syntaxRaymond Hettinger python at rcn.com
Fri Oct 17 21:10:05 EDT 2003
[GvR]
> I'd just like to pipe into this discussion saying that while Peter
> Norvig's pre-PEP is neat, I'd reject it if it were a PEP; the main
> reason that the proposed notation doesn't return a list.  I agree that
> having generator comprehensions would be a more general solution.  I
> don't have a proposal for generator comprehension syntax though, and
> [yield ...] has the same problem.

Is Phil's syntax acceptable to everyone?

     (yield:  x*x for x in roots)


I think this form works nicely.

looking-for-resolution-and-consensus-ly yours,


Raymond



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