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

platform.python_compiler

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


Import

import platform
from platform import python_compiler

Signature & Overview

platform.python_compiler()

Returns a string identifying the compiler used for compiling Python.

Usage

import platform

assert len(platform.python_compiler()) > 0

Gotchas

REPL Inspect

from platform import python_compiler
help(python_compiler)

Linked from

Related notes