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

[Python-Dev] product()

[Python-Dev] product() [Python-Dev] product()Guido van Rossum guido at python.org
Thu Oct 23 10:56:27 EDT 2003
> In a crazy, I-haven't-yet-had-my-coffee-yet desperate attempt at
> resurrecting PEP 274, what if we made dict (and maybe tuple)
> accumulator functions too?

There's nothing magical about accumulator functions; they're just
functions taking an iterable.  We have tons of these today, and
tuple() and dict() are among them.  Once the syntax works,

  dict((k,k) for k,k in "hello")

will with without changes to dict.

--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