COMMITS
/ Lib/heapq.py February 23, 2026
R
Indexing is more straight-forward (and faster) than unpacking (gh-145154)
Raymond Hettinger committed
September 18, 2025
O
Remove unnecessary slice in heapq.py (gh-139087)
Oleksandr Kravets committed
July 30, 2025
S
gh-137239: Add *_max functions to heapq.__all__ (gh-137241)
Stan Ulbrych committed
May 5, 2025
S
gh-110067: Make max heap methods public and add missing ones (GH-130725)
Stan Ulbrych committed
May 29, 2024
F
gh-119721: Integrate documentation fixes into heapq module docstring. (gh-119722)
Filip Łajszczak committed
May 22, 2024
G
Remove almost all unpaired backticks in docstrings (#119231)
Geoffrey Thomas committed
April 18, 2022
A
Update: usage doc for heappushpop (GH-91451)
Aditya Aggarwal committed
September 27, 2020
A
Revert "Fix all Python Cookbook links (#22205)" (GH-22424)
Andre Delfino committed
September 15, 2020
A
Fix all Python Cookbook links (#22205)
Andre Delfino committed
June 1, 2019
R
bpo-29984: Improve 'heapq' test coverage (GH-992)
Rob Day committed
July 24, 2018
A
bpo-34149: Behavior of the min/max with key=None (GH-8328)
Alexander Marshalov committed
September 4, 2017
R
Improve clarity (and small speed-up) by using tuple unpacking (#3289)
Raymond Hettinger committed
April 15, 2016
M
Correct “an” → “a” with “Unicode”, “user”, “UTF”, etc
Martin Panter committed
October 19, 2014
B
Issue #22186: Fix typos in Lib/.
Berker Peksag committed
June 15, 2014
R
Update comment to reflect using the default parameter with min() and max().
Raymond Hettinger committed
June 14, 2014
R
Factor common code into internal functions.
Raymond Hettinger committed
June 2, 2014
R
Fix comment
Raymond Hettinger committed
R
Minor clean-ups.
Raymond Hettinger committed
May 30, 2014
R
Issue #13742: Add key and reverse parameters to heapq.merge()
Raymond Hettinger committed
May 27, 2014
R
Minor clean-ups for heapq.merge().
Raymond Hettinger committed
May 26, 2014
R
Minor clean-ups for heapq.
Raymond Hettinger committed
May 19, 2014
R
Small code and comment cleanups
Raymond Hettinger committed
May 11, 2014
R
Issue 21424: Apply the nlargest() optimizations to nsmallest() as well.
Raymond Hettinger committed
R
Issue #21424: Optimize heaqp.nlargest() to make fewer tuple comparisons.
Raymond Hettinger committed
April 10, 2014
R
Update comment for the comparison table to use measured results rather than predicted.
Raymond Hettinger committed
R
Add algorithmic notes for nsmallest() and nlargest().
Raymond Hettinger committed
March 26, 2014
R
Broaden the early-out test for nsmallest and nlargest
Raymond Hettinger committed
September 11, 2013
R
Issue #18962: Optimize the single iterator case for heapq.merge()
Raymond Hettinger committed
July 4, 2013
B
Issue #18200: Back out usage of ModuleNotFoundError (8d28d44f3a9a)
Brett Cannon committed
June 14, 2013
B
Issue #18200: Update the stdlib (except tests) to use
Brett Cannon committed
March 5, 2013
R
Issue #16098: Update heapq.nsmallest to use the same algorithm as nlargest.
Raymond Hettinger committed
October 30, 2011
April 15, 2011
É
Minor tweaks to a few comments in heapq
Éric Araujo committed
April 13, 2011
R
Issue 3051: make pure python code pass the same tests as the C version.
Raymond Hettinger committed
July 4, 2010
M
Remove coding cookie from heapq.py.
Mark Dickinson committed
March 29, 2009
R
Make life easier for non-CPython implementations
Raymond Hettinger committed
February 21, 2009
R
In Py3.x, a list comprehension is now faster than list(map(itemgetter(0), iterable)).
Raymond Hettinger committed
R
Port r69838: Speedup and simplify negative counter using count's new step argument.
Raymond Hettinger committed
February 6, 2009
January 27, 2009
M
Issue #1717: Remove cmp. Stage 1: remove all uses of cmp and __cmp__ from
Mark Dickinson committed
January 23, 2009
B
Merged revisions 68750,68776-68777,68811,68842,68859 via svnmerge from
Benjamin Peterson committed
January 18, 2009
B
Merged revisions 68546 via svnmerge from
Benjamin Peterson committed
January 3, 2009
G
Manually merge r68096,68189 from 3.0 branch.
Georg Brandl committed
June 10, 2008
March 16, 2008
March 13, 2008
R
Move itertools izip() code to builtins as zip(). Complete the renaming.
Raymond Hettinger committed
January 22, 2008
R
Replace map(None, *iterables) with zip(*iterables).
Raymond Hettinger committed