On this page
platform.platform
Prev: platform.node | Up: platform | Next: platform.processor
Rel: platform.android_ver, platform.AndroidVer, platform.architecture, platform.freedesktop_os_release
Ref: docs.python.org — platform.platform
Tags: #public #python3 #stdlib #platform
Import
import platform
from platform import platform
Signature & Overview
platform.platform(aliased=False, terse=False)
Returns a single string identifying the underlying platform with as much useful information as possible (but no more :).
Usage
import platform
desc = platform.platform(terse=True)
assert isinstance(desc, str) and len(desc) > 0
Gotchas
- Great for bug-report headers: Pass
aliased=True, terse=Truefor a short human-readable string.
REPL Inspect
from platform import platform
help(platform)
Linked from
- tuts/python3/stdlib_module/platform
- tuts/python3/stdlib_module/platform/android_ver
- tuts/python3/stdlib_module/platform/AndroidVer
- tuts/python3/stdlib_module/platform/architecture
- tuts/python3/stdlib_module/platform/freedesktop_os_release
- tuts/python3/stdlib_module/platform/invalidate_caches
- tuts/python3/stdlib_module/platform/ios_ver
- tuts/python3/stdlib_module/platform/IOSVersionInfo
- tuts/python3/stdlib_module/platform/java_ver
- tuts/python3/stdlib_module/platform/libc_ver
- tuts/python3/stdlib_module/platform/mac_ver
- tuts/python3/stdlib_module/platform/machine
- tuts/python3/stdlib_module/platform/node
- tuts/python3/stdlib_module/platform/platform
- tuts/python3/stdlib_module/platform/processor
- tuts/python3/stdlib_module/platform/python_branch
- tuts/python3/stdlib_module/platform/python_build
- tuts/python3/stdlib_module/platform/python_compiler
- tuts/python3/stdlib_module/platform/python_implementation
- tuts/python3/stdlib_module/platform/python_revision
- tuts/python3/stdlib_module/platform/python_version
- tuts/python3/stdlib_module/platform/python_version_tuple
- tuts/python3/stdlib_module/platform/release
- tuts/python3/stdlib_module/platform/system
- tuts/python3/stdlib_module/platform/system_alias
- tuts/python3/stdlib_module/platform/uname
- tuts/python3/stdlib_module/platform/uname_result
- tuts/python3/stdlib_module/platform/version
- tuts/python3/stdlib_module/platform/win32_edition
- tuts/python3/stdlib_module/platform/win32_is_iot
- tuts/python3/stdlib_module/platform/win32_ver
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/node Linked here; links to this page; shared tags: #platform, #stdlib
- tuts/python3/stdlib_module/platform/processor Linked here; links to this page; shared tags: #platform, #stdlib
- tuts/python3/stdlib_module/platform/invalidate_caches links to this page; shared tags: #platform, #stdlib
- tuts/python3/stdlib_module/platform/ios_ver links to this page; shared tags: #platform, #stdlib
- tuts/python3/stdlib_module/platform/IOSVersionInfo links to this page; shared tags: #platform, #stdlib
- tuts/python3/stdlib_module/platform/java_ver links to this page; shared tags: #platform, #stdlib