]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-138665: Move `platform.invalidate_caches` docs (#138667)
authorShamil <ashm.tech@proton.me>
Mon, 8 Sep 2025 15:20:46 +0000 (18:20 +0300)
committerGitHub <noreply@github.com>
Mon, 8 Sep 2025 15:20:46 +0000 (17:20 +0200)
Doc/library/platform.rst

index 37df13f8a1eb8cf9c850f3d06b7ad1e38db3270b..88affb5eea2b595a935c28f587c12427e8690a46 100644 (file)
@@ -187,6 +187,14 @@ Cross platform
    .. versionchanged:: 3.9
       :attr:`processor` is resolved late instead of immediately.
 
+.. function:: invalidate_caches()
+
+   Clear out the internal cache of information, such as the :func:`uname`.
+   This is typically useful when the platform's :func:`node` is changed
+   by an external process and one needs to retrieve the updated value.
+
+   .. versionadded:: 3.14
+
 
 Windows platform
 ----------------
@@ -370,14 +378,3 @@ The following options are accepted:
 You can also pass one or more positional arguments (``terse``, ``nonaliased``)
 to explicitly control the output format. These behave similarly to their
 corresponding options.
-
-Miscellaneous
--------------
-
-.. function:: invalidate_caches()
-
-   Clear out the internal cache of information, such as the :func:`uname`.
-   This is typically useful when the platform's :func:`node` is changed
-   by an external process and one needs to retrieve the updated value.
-
-   .. versionadded:: 3.14