On this page
platform.uname_result
Prev: platform.uname | Up: platform | Next: platform.version
Rel: platform.android_ver, platform.AndroidVer, platform.architecture, platform.freedesktop_os_release
Ref: docs.python.org โ platform.uname_result
Tags: #public #python3 #stdlib #platform
Import
import platform
from platform import uname_result
Signature & Overview
platform.uname_result(system, node, release, version, machine)
A uname_result that's largely compatible with a simple namedtuple except that 'processor' is resolved late and cached to avoid calling "uname"
Methods & Attributes
uname_result.count(self, value, /)โ Return number of occurrences of value.uname_result.index(self, value, start=0, stop=9223372036854775807, /)โ Return first index of value.
Usage
import platform
assert isinstance(platform.uname(), platform.uname_result)
Gotchas
- Named tuple
(system, node, release, version, machine, processor).
REPL Inspect
from platform import uname_result
help(uname_result)
Linked from
Related notes
- tuts/python3/stdlib_module/platform/uname Linked here; links to this page; shared tags: #platform, #stdlib
- tuts/python3/stdlib_module/platform/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