diff options
author | Guido van Rossum <guido@python.org> | 1997-08-29 22:37:44 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1997-08-29 22:37:44 (GMT) |
commit | b2afc811c2a0acf1a9429c848143da1879e32540 (patch) | |
tree | f823ef4f6949ca69b90bdde7497c7527c0fe4c0c /Doc/libos.tex | |
parent | a28dab5ea2649b244a62ada83d017be39d520099 (diff) | |
download | cpython-b2afc811c2a0acf1a9429c848143da1879e32540.zip cpython-b2afc811c2a0acf1a9429c848143da1879e32540.tar.gz cpython-b2afc811c2a0acf1a9429c848143da1879e32540.tar.bz2 |
Added os.altsep; this is '/' on DOS/Windows, and None on systems with
a sane filename syntax.
Diffstat (limited to 'Doc/libos.tex')
-rw-r--r-- | Doc/libos.tex | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/Doc/libos.tex b/Doc/libos.tex index f17ce95..1853b3f 100644 --- a/Doc/libos.tex +++ b/Doc/libos.tex @@ -52,13 +52,19 @@ e.g. \code{'..'} for POSIX or \code{'::'} for the Mac. \end{datadesc} \begin{datadesc}{sep} -The character used by the OS to separate pathname components, e.g.\ -\code{'/'} for POSIX or \code{':'} for the Mac. Note that knowing this +The character used by the OS to separate pathname components, +e.g. \code{'/'} for POSIX or \code{':'} for the Mac. Note that knowing this is not sufficient to be able to parse or concatenate pathnames---better use \code{os.path.split()} and \code{os.path.join()}---but it is occasionally useful. \end{datadesc} +\begin{datadesc}{altsep} +An alternative character used by the OS to separate pathname components, +or \code{None} if only one separator character exists. This is set to +\code{'/'} on DOS/Windows systems where \code{sep} is a backslash. +\end{datadesc} + \begin{datadesc}{pathsep} The character conventionally used by the OS to separate search patch components (as in \code{\$PATH}), e.g.\ \code{':'} for POSIX or |