Commit c1ddc505 authored by Fred Drake's avatar Fred Drake

Minor revision to the "\\" patch, including updating the docs a little to

accomodate the fact that they are more general now that they are for the
os.path module and not just posixpath.

This and the previous patch should be combined and applied to the 2.2-maint
branch.
parent c12909bc
...@@ -122,11 +122,12 @@ should detect mount points for all \UNIX{} and \POSIX{} variants. ...@@ -122,11 +122,12 @@ should detect mount points for all \UNIX{} and \POSIX{} variants.
Joins one or more path components intelligently. If any component is Joins one or more path components intelligently. If any component is
an absolute path, all previous components are thrown away, and joining an absolute path, all previous components are thrown away, and joining
continues. The return value is the concatenation of \var{path1}, and continues. The return value is the concatenation of \var{path1}, and
optionally \var{path2}, etc., with exactly one slash (\code{'/'}) optionally \var{path2}, etc., with exactly one directory separator
inserted between components, unless \var{path} is empty. Note that on (\code{os.sep}) inserted between components, unless \var{path} is
Windows, since there is a current directory for each drive, empty. Note that on Windows, since there is a current directory for
{}\function{os.path.join("c:", "foo")} represents a path relative to the each drive, \function{os.path.join("c:", "foo")} represents a path
current directory on drive C:, not \code{c:\\foo}. relative to the current directory on drive \file{C:} (\file{c:foo}), not
\file{c:\textbackslash\textbackslash foo}.
\end{funcdesc} \end{funcdesc}
\begin{funcdesc}{normcase}{path} \begin{funcdesc}{normcase}{path}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment