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

platform.libc_ver

Prev: platform.java_ver | Up: platform | Next: platform.mac_ver
Rel: platform.android_ver, platform.AndroidVer, platform.architecture, platform.freedesktop_os_release
Ref: docs.python.org — platform.libc_ver
Tags: #public #python3 #stdlib #platform


Import

import platform
from platform import libc_ver

Signature & Overview

platform.libc_ver(executable=None, lib='', version='', chunksize=16384)

Tries to determine the libc version that the file executable (which defaults to the Python interpreter) is linked against.

Usage

import platform

lib, ver = platform.libc_ver()
assert isinstance(lib, str) and isinstance(ver, str)

Gotchas

REPL Inspect

from platform import libc_ver
help(libc_ver)

Linked from

Related notes