On this page
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
- Unix-only: Queries POSIX string system configuration values.
REPL Inspect
from posix import confstr
help(confstr)
Linked from
Related notes
- tuts/python3/stdlib_module/posix/closerange Linked here; links to this page; shared tags: #posix, #stdlib
- tuts/python3/stdlib_module/posix/cpu_count Linked here; links to this page; shared tags: #posix, #stdlib
- tuts/python3/stdlib_module/posix Linked here; links to this page; shared tags: #stdlib
- tuts/python3/stdlib_module/posix/abort Linked here; shared tags: #posix, #stdlib
- tuts/python3/stdlib_module/posix/access Linked here; shared tags: #posix, #stdlib
- tuts/python3/stdlib_module/posix/chdir Linked here; shared tags: #posix, #stdlib
- tuts/python3/stdlib_module/posix/chflags Linked here; shared tags: #posix, #stdlib
- tuts/python3/stdlib_module/posix/chmod shared tags: #posix, #stdlib
- tuts/python3/stdlib_module/posix/chown shared tags: #posix, #stdlib
- tuts/python3/stdlib_module/posix/chroot shared tags: #posix, #stdlib