On this page
platform.version
Prev: platform.uname_result | Up: platform | Next: platform.win32_edition
Rel: platform.android_ver, platform.AndroidVer, platform.architecture, platform.freedesktop_os_release
Ref: docs.python.org — platform.version
Tags: #public #python3 #stdlib #platform
Import
import platform
from platform import version
Signature & Overview
platform.version()
Returns the system's release version, e.g. '#3 on degas' An empty string is returned if the value cannot be determined.
Usage
import platform
assert isinstance(platform.version(), str)
Gotchas
- Detailed OS build string (longer than
platform.release()).
REPL Inspect
from platform import version
help(version)
Linked from
Related notes
- tuts/python3/stdlib_module/platform/uname_result Linked here; links to this page; shared tags: #platform, #stdlib
- tuts/python3/stdlib_module/platform/win32_edition Linked here; links to this page; shared tags: #platform, #stdlib
- tuts/python3/stdlib_module/platform/android_ver Linked here; shared tags: #platform, #stdlib
- tuts/python3/stdlib_module/platform/AndroidVer Linked here; shared tags: #platform, #stdlib
- tuts/python3/stdlib_module/platform/architecture Linked here; shared tags: #platform, #stdlib
- tuts/python3/stdlib_module/platform/freedesktop_os_release Linked here; 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/invalidate_caches shared tags: #platform, #stdlib
- tuts/python3/stdlib_module/platform/ios_ver shared tags: #platform, #stdlib