On this page
  1. platform.processor
  2. Import
  3. Signature & Overview
  4. Usage
  5. Gotchas
  6. REPL Inspect

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

REPL Inspect

from platform import processor
help(processor)

Linked from

Related notes