Skip to content

Commit abe0a95

Browse files
Improve entries
1 parent a499cd4 commit abe0a95

File tree

3 files changed

+5
-16
lines changed

3 files changed

+5
-16
lines changed

Doc/whatsnew/3.14.rst

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -567,17 +567,16 @@ getopt
567567
heapq
568568
-----
569569

570-
* Make :mod:`heapq` max-heap functions
570+
* The max-heap functions in :mod:`heapq` are now public:
571571

572572
* :func:`heapq.heapify_max`,
573573
* :func:`heapq.heappush_max`,
574574
* :func:`heapq.heappop_max`,
575575
* :func:`heapq.heapreplace_max`
576576

577-
public. And add the missing :func:`heapq.heappushpop_max` to
578-
both the C and Python implementation.
579-
580577
Previous underscored naming is kept for backwards compatibility.
578+
Additionally, the missing function :func:`heapq.heappushpop_max` has been added to both the C and Python
579+
implementations.
581580

582581

583582
http

Lib/test/test_heapq.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@ def test_push_pop(self):
6868
self.check_invariant(results)
6969

7070
self.assertRaises(TypeError, self.module.heappush, [])
71-
7271
try:
7372
self.assertRaises(TypeError, self.module.heappush, None, None)
7473
self.assertRaises(TypeError, self.module.heappop, None)
Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,2 @@
1-
Make :mod:`heapq` max-heap functions
2-
3-
* :func:`heapq.heapify_max`,
4-
* :func:`heapq.heappush_max`,
5-
* :func:`heapq.heappop_max`,
6-
* :func:`heapq.heapreplace_max`
7-
8-
public. And add the missing :func:`heapq.heappushpop_max` to
9-
both the C and Python implementation.
10-
11-
Previous underscored naming is kept for backwards compatibility.
1+
Make :mod:`heapq` max-heap functions :func:`heapq.heapify_max`, :func:`heapq.heappush_max`, :func:`heapq.heappop_max`,
2+
and :func:`heapq.heapreplace_max` public. Add missing :func:`heapq.heappushpop_max` to both the C and Python implementation.

0 commit comments

Comments
 (0)