diff options
author | Fred Drake <fdrake@acm.org> | 2000-10-26 21:38:23 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2000-10-26 21:38:23 (GMT) |
commit | 3aecfc96811c6d85632e50fe706bb5d02d376c00 (patch) | |
tree | 90ca74214445fee895fd0f8f9d26bddcab778b14 /Doc/lib/libposixpath.tex | |
parent | 4532dc1bd9a588a05995d11f5e23161cbec77bbe (diff) | |
download | cpython-3aecfc96811c6d85632e50fe706bb5d02d376c00.zip cpython-3aecfc96811c6d85632e50fe706bb5d02d376c00.tar.gz cpython-3aecfc96811c6d85632e50fe706bb5d02d376c00.tar.bz2 |
Explained that os.path.basename() may return something different from the
basename program, as suggested by Gregor Hoffleit <gregor@hoffleit.de>.
This closes bug #119485.
Diffstat (limited to 'Doc/lib/libposixpath.tex')
-rw-r--r-- | Doc/lib/libposixpath.tex | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Doc/lib/libposixpath.tex b/Doc/lib/libposixpath.tex index 66e2781..f585f41 100644 --- a/Doc/lib/libposixpath.tex +++ b/Doc/lib/libposixpath.tex @@ -17,7 +17,11 @@ On most platforms, this is equivalent to \begin{funcdesc}{basename}{path} Return the base name of pathname \var{path}. This is the second half -of the pair returned by \code{split(\var{path})}. +of the pair returned by \code{split(\var{path})}. Note that the +result of this function is different from the +\UNIX{} \program{basename} program; where \program{basename} for +\code{'/foo/bar/'} returns \code{'bar'}, the \function{basename()} +function returns an empty string (\code{''}). \end{funcdesc} \begin{funcdesc}{commonprefix}{list} |