name) |
confstr_names
dictionary. For configuration variables not
included in that mapping, passing an integer for name is also
accepted.
Availability: Unix.
If the configuration value specified by name isn't defined, the empty string is returned.
If name is a string and is not known, ValueError is
raised. If a specific value for name is not supported by the
host system, even if it is included in confstr_names
, an
OSError is raised with errno.EINVAL for the
error number.
) |
New in version 2.3.
name) |
-1
is returned. The comments regarding the name
parameter for confstr() apply here as well; the dictionary
that provides information on the known names is given by
sysconf_names
.
Availability: Unix.
The follow data values are used to support path manipulation operations. These are defined for all platforms.
Higher-level operations on pathnames are defined in the os.path module.
'.'
for POSIX or ':'
for the Macintosh.
Also available via os.path.
'..'
for POSIX or '::'
for the Macintosh.
Also available via os.path.
None
if only one separator character exists. This is
set to "/" on Windows systems where sep
is a
backslash.
Also available via os.path.
'PATH'
key.
Also available via os.path.
'\
n'
for POSIX or '\r'
for Mac OS, or multiple characters,
for example, '\r\n'
for Windows.
'/dev/null'
for POSIX or 'Dev:Nul'
for the
Macintosh.
Also available via os.path.
New in version 2.4.
See About this document... for information on suggesting changes.