Commit 56b30ea6 authored by Guido van Rossum's avatar Guido van Rossum

Document actual behavior of splitext().

parent 8823972c
...@@ -125,8 +125,8 @@ slashes separating \var{head} from \var{tail}). ...@@ -125,8 +125,8 @@ slashes separating \var{head} from \var{tail}).
\begin{funcdesc}{splitext}{p} \begin{funcdesc}{splitext}{p}
Split the pathname \var{p} in a pair \code{(\var{root}, \var{ext})} Split the pathname \var{p} in a pair \code{(\var{root}, \var{ext})}
such that \code{\var{root} + \var{ext} == \var{p}}, such that \code{\var{root} + \var{ext} == \var{p}},
the last component of \var{root} contains no periods, and \var{ext} is empty or begins with a period and contains
and \var{ext} is empty or begins with a period. at most one period.
\end{funcdesc} \end{funcdesc}
\begin{funcdesc}{walk}{p\, visit\, arg} \begin{funcdesc}{walk}{p\, visit\, arg}
......
...@@ -125,8 +125,8 @@ slashes separating \var{head} from \var{tail}). ...@@ -125,8 +125,8 @@ slashes separating \var{head} from \var{tail}).
\begin{funcdesc}{splitext}{p} \begin{funcdesc}{splitext}{p}
Split the pathname \var{p} in a pair \code{(\var{root}, \var{ext})} Split the pathname \var{p} in a pair \code{(\var{root}, \var{ext})}
such that \code{\var{root} + \var{ext} == \var{p}}, such that \code{\var{root} + \var{ext} == \var{p}},
the last component of \var{root} contains no periods, and \var{ext} is empty or begins with a period and contains
and \var{ext} is empty or begins with a period. at most one period.
\end{funcdesc} \end{funcdesc}
\begin{funcdesc}{walk}{p\, visit\, arg} \begin{funcdesc}{walk}{p\, visit\, arg}
......
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