File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -52,13 +52,19 @@ \section{Standard Module \sectcode{os}}
5252\end {datadesc }
5353
5454\begin {datadesc }{sep}
55- The character used by the OS to separate pathname components, e.g. \
56- \code {'/'} for POSIX or \code {':'} for the Mac. Note that knowing this
55+ The character used by the OS to separate pathname components,
56+ e.g. \code {'/'} for POSIX or \code {':'} for the Mac. Note that knowing this
5757is not sufficient to be able to parse or concatenate pathnames---better
5858use \code {os.path.split()} and \code {os.path.join()}---but it is
5959occasionally useful.
6060\end {datadesc }
6161
62+ \begin {datadesc }{altsep}
63+ An alternative character used by the OS to separate pathname components,
64+ or \code {None} if only one separator character exists. This is set to
65+ \code {'/'} on DOS/Windows systems where \code {sep} is a backslash.
66+ \end {datadesc }
67+
6268\begin {datadesc }{pathsep}
6369The character conventionally used by the OS to separate search patch
6470components (as in \code {\$ PATH}), e.g.\ \code {':'} for POSIX or
Original file line number Diff line number Diff line change @@ -52,13 +52,19 @@ \section{Standard Module \sectcode{os}}
5252\end {datadesc }
5353
5454\begin {datadesc }{sep}
55- The character used by the OS to separate pathname components, e.g. \
56- \code {'/'} for POSIX or \code {':'} for the Mac. Note that knowing this
55+ The character used by the OS to separate pathname components,
56+ e.g. \code {'/'} for POSIX or \code {':'} for the Mac. Note that knowing this
5757is not sufficient to be able to parse or concatenate pathnames---better
5858use \code {os.path.split()} and \code {os.path.join()}---but it is
5959occasionally useful.
6060\end {datadesc }
6161
62+ \begin {datadesc }{altsep}
63+ An alternative character used by the OS to separate pathname components,
64+ or \code {None} if only one separator character exists. This is set to
65+ \code {'/'} on DOS/Windows systems where \code {sep} is a backslash.
66+ \end {datadesc }
67+
6268\begin {datadesc }{pathsep}
6369The character conventionally used by the OS to separate search patch
6470components (as in \code {\$ PATH}), e.g.\ \code {':'} for POSIX or
You can’t perform that action at this time.
0 commit comments