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.
This commit is contained in:
parent
4532dc1bd9
commit
3aecfc9681
|
@ -17,7 +17,11 @@ On most platforms, this is equivalent to
|
||||||
|
|
||||||
\begin{funcdesc}{basename}{path}
|
\begin{funcdesc}{basename}{path}
|
||||||
Return the base name of pathname \var{path}. This is the second half
|
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}
|
\end{funcdesc}
|
||||||
|
|
||||||
\begin{funcdesc}{commonprefix}{list}
|
\begin{funcdesc}{commonprefix}{list}
|
||||||
|
|
Loading…
Reference in New Issue