]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Minor documentation improvements (#140626)
authorRodrigo Girão Serrão <5621605+rodrigogiraoserrao@users.noreply.github.com>
Thu, 6 Nov 2025 17:11:50 +0000 (17:11 +0000)
committerGitHub <noreply@github.com>
Thu, 6 Nov 2025 17:11:50 +0000 (19:11 +0200)
Doc/library/concurrent.interpreters.rst
Doc/library/heapq.rst

index 41ea6af3b226e98569686678838de35db85cfb04..55036090e8d5b86a29d8b526f2a7a218b1ce2d18 100644 (file)
@@ -29,12 +29,12 @@ Actual concurrency is available separately through
 .. seealso::
 
    :class:`~concurrent.futures.InterpreterPoolExecutor`
-      combines threads with interpreters in a familiar interface.
+      Combines threads with interpreters in a familiar interface.
 
-    .. XXX Add references to the upcoming HOWTO docs in the seealso block.
+   .. XXX Add references to the upcoming HOWTO docs in the seealso block.
 
    :ref:`isolating-extensions-howto`
-       how to update an extension module to support multiple interpreters
+      How to update an extension module to support multiple interpreters.
 
    :pep:`554`
 
index 95ef72469b18ef36110a9f4c35b46bc3e55bb078..5049262306a228d15dff3713b33d09648c05252b 100644 (file)
@@ -58,6 +58,11 @@ functions, respectively.
 The following functions are provided for min-heaps:
 
 
+.. function:: heapify(x)
+
+   Transform list *x* into a min-heap, in-place, in linear time.
+
+
 .. function:: heappush(heap, item)
 
    Push the value *item* onto the *heap*, maintaining the min-heap invariant.
@@ -77,11 +82,6 @@ The following functions are provided for min-heaps:
    followed by a separate call to :func:`heappop`.
 
 
-.. function:: heapify(x)
-
-   Transform list *x* into a min-heap, in-place, in linear time.
-
-
 .. function:: heapreplace(heap, item)
 
    Pop and return the smallest item from the *heap*, and also push the new *item*.