]> granicus.if.org Git - python/commitdiff
Added os.altsep; this is '/' on DOS/Windows, and None on systems with
authorGuido van Rossum <guido@python.org>
Fri, 29 Aug 1997 22:37:44 +0000 (22:37 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 29 Aug 1997 22:37:44 +0000 (22:37 +0000)
a sane filename syntax.

Doc/lib/libos.tex
Doc/libos.tex

index f17ce9574f6e670015c8fc97168e18a2c75fa825..1853b3ffefb9896fe8ac26568d9e9f5b58dcdaf9 100644 (file)
@@ -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
index f17ce9574f6e670015c8fc97168e18a2c75fa825..1853b3ffefb9896fe8ac26568d9e9f5b58dcdaf9 100644 (file)
@@ -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