[Python-Dev] Re: Candidate Itertools

Holger Krekel pyth at devel.trillke.net
Fri Jun 25 06:00:27 EDT 2004


Raymond Hettinger wrote:
> [David Eppstein]
> >In another place I used the dictionary directly
> > but it amounted to the same thing.
> 
> 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. 

    holger



More information about the Python-Dev mailing list