On this page
platform.python_build
Prev: platform.python_branch | Up: platform | Next: platform.python_compiler
Rel: platform.android_ver, platform.AndroidVer, platform.architecture, platform.freedesktop_os_release
Ref: docs.python.org — platform.python_build
Tags: #public #python3 #stdlib #platform
Import
import platform
from platform import python_build
Signature & Overview
platform.python_build()
Returns a tuple (buildno, builddate) stating the Python build number and date as strings.
Usage
import platform
buildno, builddate = platform.python_build()
assert isinstance(buildno, str) and isinstance(builddate, str)
Gotchas
- Tuple
(buildno, builddate)from the interpreter banner.
REPL Inspect
from platform import python_build
help(python_build)
Linked from
Related notes
- tuts/python3/stdlib_module/platform/python_branch Linked here; links to this page; shared tags: #platform, #stdlib
- tuts/python3/stdlib_module/platform/python_compiler 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