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

platform.python_implementation

Prev: platform.python_compiler | Up: platform | Next: platform.python_revision
Rel: platform.android_ver, platform.AndroidVer, platform.architecture, platform.freedesktop_os_release
Ref: docs.python.org — platform.python_implementation
Tags: #public #python3 #stdlib #platform


Import

import platform
from platform import python_implementation

Signature & Overview

platform.python_implementation()

Returns a string identifying the Python implementation.

Usage

import platform

impl = platform.python_implementation()
assert impl in ("CPython", "PyPy", "IronPython", "Jython") or len(impl) > 0

Gotchas

REPL Inspect

from platform import python_implementation
help(python_implementation)

Linked from

Related notes