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

[Python-Dev] accumulator display syntax

[Python-Dev] accumulator display syntax [Python-Dev] accumulator display syntaxGuido van Rossum guido at python.org
Fri Oct 17 14:09:03 EDT 2003
> Guido van Rossum wrote:
> > but perhaps we can make this work:
> > 
> >   sum(x for x in S)

[Shane Holloway]
> Being able to use generator compressions as an expression would be 
> useful.  In that case, I assume the following would be possible as well:
> 
>      mygenerator = x for x in S
> 
>      for y in x for x in S:
>          print y
> 
>      return x for x in S

You'd probably have to add extra parentheses around (x for x in S) to
help the poor parser (and the human reader).

--Guido van Rossum (home page: http://www.python.org/~guido/)

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