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

posix.confstr

Prev: posix.closerange | Up: posix | Next: posix.cpu_count
Rel: posix.abort, posix.access, posix.chdir, posix.chflags
Ref: docs.python.org — posix.confstr
Tags: #public #python3 #stdlib #posix


Import

import posix
from posix import confstr

Signature & Overview

posix.confstr(name, /)

Return a string-valued system configuration variable.

Usage

import os

if hasattr(os, 'confstr'):
    assert isinstance(os.confstr('CS_PATH'), str)

Gotchas

REPL Inspect

from posix import confstr
help(confstr)

Linked from

Related notes