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/2004-June/045413.html below:

[Python-Dev] Re: Candidate Itertools

[Python-Dev] Re: Candidate Itertools [Python-Dev] Re: Candidate ItertoolsGrégoire Dooms dooms at info.ucl.ac.be
Wed Jun 16 04:26:42 EDT 2004
Raymond Hettinger wrote:

<snip ...>

>
>OTOH, if you actually want to end-up with a dictionary, it is somewhat
>wasteful to build one, throw it away, and then rebuild it from the
>itemlist:
>
>  >>> dict(count_elements(words))
>
>  
>
IMO, the dictionary would be more useful as :
    >>>  dict(pairswap(count_elements(words)))
And yes, it would be wasteful to produce it in this way.

--
Grégoire Dooms


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