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

[Python-Dev] Re: Candidate Itertools

[Python-Dev] Re: Candidate Itertools [Python-Dev] Re: Candidate ItertoolsJosiah Carlson jcarlson at uci.edu
Fri Jun 25 13:27:17 EDT 2004
> > All respondents prefer having a dictionary (elements mapped to counts)
> > instead of an itertool returning (cnt, elem) ...
> > 
> > Just to be clear before I do it, does everyone support having
> > dict.countkeys() as a dictionary classmethod instead of the original
> > proposal?
> 
> I don't see the need for this method to be so high as to warrant
> it to live on the dict object.  FWIW, when i came to python i especially
> enjoyed the sparcity of methods on lists and dictionaries, of which
> each usage was almost immediately obvious. 


Since there exists a dict.fromkeys method, there is precidence for
adding a dict.countkeys method.

 - Josiah


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