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

[Python-Dev] accumulator display syntax

[Python-Dev] accumulator display syntax [Python-Dev] accumulator display syntaxWalter Dörwald walter at livinglogic.de
Tue Oct 21 18:28:51 EDT 2003
Guido van Rossum wrote:

> [...]
> Thanks for trying to bang some sense into this.
> 
> Personally, I still like the idea best to make
> 
>     (x for x in S)
> 
> be an iterator comprehension
> 
> and
> 
>     [x for x in S]
> 
> syntactic sugar for the common operation
> 
>     list((x for x in S))

Would this mean:
[x for x in S] is a list comprehension and
[(x for x in S)] is a list containing one generator expression?

Bye,
    Walter Dörwald



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