Skip to content

Commit 68e0abe

Browse files
[3.14] gh-138665: Move platform.invalidate_caches docs (GH-138667) (#138668)
Co-authored-by: Shamil <[email protected]>
1 parent 0f94b18 commit 68e0abe

File tree

1 file changed

+8
-11
lines changed

1 file changed

+8
-11
lines changed

Doc/library/platform.rst

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,14 @@ Cross platform
187187
.. versionchanged:: 3.9
188188
:attr:`processor` is resolved late instead of immediately.
189189

190+
.. function:: invalidate_caches()
191+
192+
Clear out the internal cache of information, such as the :func:`uname`.
193+
This is typically useful when the platform's :func:`node` is changed
194+
by an external process and one needs to retrieve the updated value.
195+
196+
.. versionadded:: 3.14
197+
190198

191199
Java platform
192200
-------------
@@ -388,14 +396,3 @@ The following options are accepted:
388396
You can also pass one or more positional arguments (``terse``, ``nonaliased``)
389397
to explicitly control the output format. These behave similarly to their
390398
corresponding options.
391-
392-
Miscellaneous
393-
-------------
394-
395-
.. function:: invalidate_caches()
396-
397-
Clear out the internal cache of information, such as the :func:`uname`.
398-
This is typically useful when the platform's :func:`node` is changed
399-
by an external process and one needs to retrieve the updated value.
400-
401-
.. versionadded:: 3.14

0 commit comments

Comments
 (0)