[issue5697] heapq.nlargest does not perform stable sort

DSM report at bugs.python.org
Sun Apr 5 23:15:02 CEST 2009


DSM <dsm001 at users.sourceforge.net> added the comment:

I can't reproduce in current python, and the relevant lines now look like 

        it = izip(iterable, count(0,-1))                    # decorate
    it = izip(imap(key, in1), count(0,-1), in2)             # decorate

It seems that these were fixed long ago by rhettinger in r53244, with
tests checked in to verify behaviour.

----------
nosy: +dsm001

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5697>
_______________________________________


More information about the Python-bugs-list mailing list