]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.14] gh-138665: Move `platform.invalidate_caches` docs (GH-138667) (#138668)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 8 Sep 2025 16:06:27 +0000 (18:06 +0200)
committerGitHub <noreply@github.com>
Mon, 8 Sep 2025 16:06:27 +0000 (19:06 +0300)
Co-authored-by: Shamil <ashm.tech@proton.me>
Doc/library/platform.rst

index 2f17687298563205ce7e8a8272e21446de7ebbe8..7bba8dd412c3aa19911a8bfbba09dfcaaeabbabf 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
+
 
 Java platform
 -------------
@@ -388,14 +396,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