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

Delaney, Timothy (Tim) tdelaney at avaya.com
Tue Apr 10 01:17:24 CEST 2007

Greg Ewing wrote:

> Steven Bethard wrote:
>> * Greg Ewing - counteach(), countall()
>> * Guido - counts() is fine
> I'm happy with counts() too -- I only suggested the
> others in case counts() wasn't acceptable for some
> reason. If Guido likes it, that's good enough for
> me.

I think I'd prefer "tally" as less ambiguous, but "counts" works too.

Tim Delaney

More information about the Python-Dev mailing list