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/2001-October/018250.html below:

[Python-Dev] [UPDATE] PEP 274, Dict Comprehensions

[Python-Dev] [UPDATE] PEP 274, Dict Comprehensions [Python-Dev] [UPDATE] PEP 274, Dict ComprehensionsGuido van Rossum guido@python.org
Mon, 29 Oct 2001 21:28:47 -0500
> +1 generally on dict comprehensions, but:
> 
> > >>> print {1 for x in list_of_email_addrs}
> >      {'barry@zope.com'   : 1, 'barry@python.org' : 1, 'guido@python.org' : 1}
> 
> -1 on this bit. It's not at all clear what it should mean,
> and the saving over writing it out explicitly, i.e.
> 
>   {x:1 for x in list_of_email_addrs}
> 
> is vanishingly small.

You're getting better at channeling me. :-)

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



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