diff options
author | Guido van Rossum <guido@python.org> | 1998-02-18 14:00:05 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1998-02-18 14:00:05 (GMT) |
commit | 1931c0c96156d44b3fa8717f54132e4835339403 (patch) | |
tree | 959249f342748979d9ef780751e1659b9a349c77 | |
parent | daa2d5d4ea6f634bae970d9065f8a239b13312ab (diff) | |
download | cpython-1931c0c96156d44b3fa8717f54132e4835339403.zip cpython-1931c0c96156d44b3fa8717f54132e4835339403.tar.gz cpython-1931c0c96156d44b3fa8717f54132e4835339403.tar.bz2 |
Add normpath(). Clarify normcase(). (Note -- this doc section
probably needs more work, describing new functions and the differences
between unix/mac/win.
-rw-r--r-- | Doc/lib/libppath.tex | 15 | ||||
-rw-r--r-- | Doc/libppath.tex | 15 |
2 files changed, 24 insertions, 6 deletions
diff --git a/Doc/lib/libppath.tex b/Doc/lib/libppath.tex index d286dcc..5b1f16f 100644 --- a/Doc/lib/libppath.tex +++ b/Doc/lib/libppath.tex @@ -90,9 +90,18 @@ between components, unless \var{p} is empty. \end{funcdesc} \begin{funcdesc}{normcase}{p} -Normalize the case of a pathname. This returns the path unchanged; -however, a similar function in \code{macpath} converts upper case to -lower case. +Normalize the case of a pathname. On \UNIX{}, this returns the path +unchanged; on case-insensitive filesystems, it converts the path to +lowercase. On Windows, it also converts forward slashes to backward +slashes. +\end{funcdesc} + +\begin{funcdesc}{normpath}{p} +Normalize a pathname. This collapses redundant separators and +up-level references, e.g. \code{A//B}, \code{A/./B} and +\code{A/foo/../B} all become \code{A/B}. It does not normalize the +case (use \code{normcase()} for that). On Windows, it does converts +forward slashes to backward slashes. \end{funcdesc} \begin{funcdesc}{samefile}{p\, q} diff --git a/Doc/libppath.tex b/Doc/libppath.tex index d286dcc..5b1f16f 100644 --- a/Doc/libppath.tex +++ b/Doc/libppath.tex @@ -90,9 +90,18 @@ between components, unless \var{p} is empty. \end{funcdesc} \begin{funcdesc}{normcase}{p} -Normalize the case of a pathname. This returns the path unchanged; -however, a similar function in \code{macpath} converts upper case to -lower case. +Normalize the case of a pathname. On \UNIX{}, this returns the path +unchanged; on case-insensitive filesystems, it converts the path to +lowercase. On Windows, it also converts forward slashes to backward +slashes. +\end{funcdesc} + +\begin{funcdesc}{normpath}{p} +Normalize a pathname. This collapses redundant separators and +up-level references, e.g. \code{A//B}, \code{A/./B} and +\code{A/foo/../B} all become \code{A/B}. It does not normalize the +case (use \code{normcase()} for that). On Windows, it does converts +forward slashes to backward slashes. \end{funcdesc} \begin{funcdesc}{samefile}{p\, q} |