gh-138665: Move platform.invalidate_caches docs (#138667)

This commit is contained in:
Shamil 2025-09-08 18:20:46 +03:00 committed by GitHub
parent 1acb718ea2
commit c6f8b2fdb1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View 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