On 4/7/07, Guido van Rossum <[EMAIL PROTECTED]> wrote:

On 4/7/07, Adam Olsen <[EMAIL PROTECTED]> wrote:
> On 4/7/07, Steven Bethard <[EMAIL PROTECTED]> wrote:
> > Here's a patch implementing collections.counts() as suggested above:
>
> The name doesn't make it obvious to me what's going on.  Maybe
> countunique()?  Some other options are countdistinct() and
> countduplicates().

-1. I like the name that Steve proposed just fine; "counts" perfectly
explain that it produces counts of items. If there couldn't be
duplicates then "counts" wouldn't make sense since the only outcomes
would be True or False (present or not).



I call that function 'tally'.

-Kevin
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to