platform.invalidate_caches
Prev: platform.freedesktop_os_release | Up: platform | Next: platform.ios_ver
Rel: platform.android_ver, platform.AndroidVer, platform.architecture, platform.freedesktop_os_release
Ref: docs.python.org — platform.invalidate_caches
Tags: #public #python3 #stdlib #platform
Import
import platform
from platform import invalidate_caches
Signature & Overview
platform.invalidate_caches()
Invalidate the cached results.
Usage
import platform
if hasattr(platform, "invalidate_caches"):
platform.invalidate_caches()
Gotchas
- Requires Python 3.14+: Clears cached OS/uname results.
REPL Inspect
from platform import invalidate_caches
help(invalidate_caches)
Linked from
Related notes
- tuts/python3/stdlib_module/platform/android_ver Linked here; links to this page; shared tags: #platform, #stdlib
- tuts/python3/stdlib_module/platform/AndroidVer Linked here; links to this page; shared tags: #platform, #stdlib
- tuts/python3/stdlib_module/platform/architecture Linked here; links to this page; shared tags: #platform, #stdlib
- tuts/python3/stdlib_module/platform/freedesktop_os_release Linked here; links to this page; shared tags: #platform, #stdlib
- tuts/python3/stdlib_module/platform/ios_ver Linked here; links to this page; shared tags: #platform, #stdlib
- tuts/python3/stdlib_module/platform/platform Linked here; shared tags: #platform, #stdlib
- tuts/python3/stdlib_module/platform links to this page; shared tags: #stdlib
- tuts/python3/stdlib_module/platform/IOSVersionInfo shared tags: #platform, #stdlib
- tuts/python3/stdlib_module/platform/java_ver shared tags: #platform, #stdlib
- tuts/python3/stdlib_module/platform/libc_ver shared tags: #platform, #stdlib