platform.python_revision
Prev: platform.python_implementation | Up: platform | Next: platform.python_version
Rel: platform.android_ver, platform.AndroidVer, platform.architecture, platform.freedesktop_os_release
Ref: docs.python.org — platform.python_revision
Tags: #public #python3 #stdlib #platform
Import
import platform
from platform import python_revision
Signature & Overview
platform.python_revision()
Returns a string identifying the Python implementation revision.
Usage
import platform
assert isinstance(platform.python_revision(), str)
Gotchas
- Git revision string (often empty on packaged builds).
REPL Inspect
from platform import python_revision
help(python_revision)
Linked from
Related notes
- tuts/python3/stdlib_module/platform/python_implementation Linked here; links to this page; shared tags: #platform, #stdlib
- tuts/python3/stdlib_module/platform/python_version 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