Counting number of each item in a list.

Paul Rubin http
Sun Mar 19 14:17:08 EST 2006


Bruno Desthuilliers <bdesth.quelquechose at free.quelquepart.fr> writes:
> And of course, I was right. My solution seems to be faster than Paul's
> one (but slower than bearophile's), be it on small, medium or large
> lists.
> 
> nb: A is mine, B is Paul's and C is bearophile's, and the number after
> is the size of the list...

Interesting.  I wonder if you could try it with a much larger number
of distinct values in the list.



More information about the Python-list mailing list