[issue5669] Extra heap nlargest/nsmallest option for including ties
George Sakkis
report at bugs.python.org
Thu Apr 2 18:45:03 CEST 2009
George Sakkis <george.sakkis at gmail.com> added the comment:
The second call should of course be:
>>> for i in xrange(1,len(s)+1): print i,heapq.nsmallest(i,s,ties=True)
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5669>
_______________________________________
More information about the Python-bugs-list
mailing list