Re: collections Counter most_common method

2013-12-15 Thread Mark Lawrence
On 14/12/2013 19:42, Peter Otten wrote: Mark Lawrence wrote: This method returns a list, the example from The Fine Docs being:- >>> Counter('abracadabra').most_common(3) [('a', 5), ('r', 2), ('b', 2)] With the trend in Python being more and more towards methods returning iterators, is there

Re: collections Counter most_common method

2013-12-14 Thread Peter Otten
Mark Lawrence wrote: > This method returns a list, the example from The Fine Docs being:- > > >>> Counter('abracadabra').most_common(3) > [('a', 5), ('r', 2), ('b', 2)] > > With the trend in Python being more and more towards methods returning > iterators, is there ever likely to be an imost_co

Re: collections Counter most_common method

2013-12-14 Thread Roy Smith
In article , Mark Lawrence wrote: > This method returns a list, the example from The Fine Docs being:- > > >>> Counter('abracadabra').most_common(3) > [('a', 5), ('r', 2), ('b', 2)] > > With the trend in Python being more and more towards methods returning > iterators, is there ever likely t

collections Counter most_common method

2013-12-14 Thread Mark Lawrence
This method returns a list, the example from The Fine Docs being:- >>> Counter('abracadabra').most_common(3) [('a', 5), ('r', 2), ('b', 2)] With the trend in Python being more and more towards methods returning iterators, is there ever likely to be an imost_common method, or has this been sugg