Simplify the nlargest() code using heappushpop().
commit74894734914dd699fbbcb28989a47a55de27ca0b
authorraymond.hettinger <raymond.hettinger@6015fed2-1504-0410-9fe1-9d1591cc4771>
Thu, 13 Mar 2008 19:33:34 +0000 (13 19:33 +0000)
committerraymond.hettinger <raymond.hettinger@6015fed2-1504-0410-9fe1-9d1591cc4771>
Thu, 13 Mar 2008 19:33:34 +0000 (13 19:33 +0000)
tree4d603410b5868e3defa5bc9cba1c14146c72d250
parent0fcdf4e68677d886197f09872f233e9361cca1c8
Simplify the nlargest() code using heappushpop().

git-svn-id: http://svn.python.org/projects/python/trunk@61370 6015fed2-1504-0410-9fe1-9d1591cc4771
Lib/heapq.py