<br><br><div><span class="gmail_quote">On 4/7/07, <b class="gmail_sendername">Guido van Rossum</b> <<a href="mailto:guido@python.org">guido@python.org</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On 4/7/07, Adam Olsen <<a href="mailto:rhamph@gmail.com">rhamph@gmail.com</a>> wrote:<br>> On 4/7/07, Steven Bethard <<a href="mailto:steven.bethard@gmail.com">steven.bethard@gmail.com</a>> wrote:<br>> > Here's a patch implementing
collections.counts() as suggested above:<br>><br>> The name doesn't make it obvious to me what's going on. Maybe<br>> countunique()? Some other options are countdistinct() and<br>> countduplicates().
<br><br>-1. I like the name that Steve proposed just fine; "counts" perfectly<br>explain that it produces counts of items. If there couldn't be<br>duplicates then "counts" wouldn't make sense since the only outcomes
<br>would be True or False (present or not).<br></blockquote></div><br><br>I call that function 'tally'.<br><br>-Kevin<br><br>