On this page
platform.processor
Prev: platform.platform | Up: platform | Next: platform.python_branch
Rel: platform.android_ver, platform.AndroidVer, platform.architecture, platform.freedesktop_os_release
Ref: docs.python.org — platform.processor
Tags: #public #python3 #stdlib #platform
Import
import platform
from platform import processor
Signature & Overview
platform.processor()
Returns the (true) processor name, e.g. 'amdk6' An empty string is returned if the value cannot be determined. Note that many platforms do not provide this
Usage
import platform
assert isinstance(platform.processor(), str)
Gotchas
- Often empty or identical to
machine(): Don't rely onprocessor()for feature detection.
REPL Inspect
from platform import processor
help(processor)
Linked from
Related notes
- tuts/python3/stdlib_module/platform/platform Linked here; links to this page; shared tags: #platform, #stdlib
- tuts/python3/stdlib_module/platform/python_branch 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 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
- tuts/python3/stdlib_module/platform/IOSVersionInfo shared tags: #platform, #stdlib