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/2007-April/072529.html below:

[Python-Dev] function for counting items in a sequence

[Python-Dev] function for counting items in a sequence [Python-Dev] function for counting items in a sequenceGreg Ewing greg.ewing at canterbury.ac.nz
Mon Apr 9 02:15:20 CEST 2007
Raymond Hettinger wrote:
> Instead of a separate function in collections, it may be sensible to stick with
> the familiar and provide a dictionary contructor for the commonly encounter use
> case of counting things:

I don't think that's a good idea. The dict class
should restrict itself to being a general-purpose
mapping object, and not become a catchall for
utility functions that happen to return a dict.

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