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

[Python-Dev] Re: accumulator display syntax

[Python-Dev] Re: accumulator display syntax [Python-Dev] Re: accumulator display syntaxDavid Eppstein eppstein at ics.uci.edu
Tue Oct 21 20:44:45 EDT 2003
In article <20031021233910.GA2091 at mems-exchange.org>,
 Neil Schemenauer <nas-python at python.ca> wrote:

> nother nice thing is that we have tuple and dict comprehensions
> for free:
> 
>   tuple(x for x in S)
>   dict((k, v) for k, v in S)
>   Set(x for x in S)

Who cares about tuple comprehensions, but I would like similar syntactic 
sugar for dict comprehensions as for lists:
    {k:v for k,v in S}
(PEP 274).

-- 
David Eppstein                      http://www.ics.uci.edu/~eppstein/
Univ. of California, Irvine, School of Information & Computer Science


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