]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Document actual behavior of splitext().
authorGuido van Rossum <guido@python.org>
Mon, 19 Aug 1996 23:00:50 +0000 (23:00 +0000)
committerGuido van Rossum <guido@python.org>
Mon, 19 Aug 1996 23:00:50 +0000 (23:00 +0000)
Doc/lib/libppath.tex
Doc/libppath.tex

index 5c6bf7772c0156177b79f9c3c114d1e4f4a13859..d43d3e13d9f21958a77d7559b379a7d4fb1f26d8 100644 (file)
@@ -125,8 +125,8 @@ slashes separating \var{head} from \var{tail}).
 \begin{funcdesc}{splitext}{p}
 Split the pathname \var{p} in a pair \code{(\var{root}, \var{ext})}
 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 \var{ext} is empty or begins with a period and contains
+at most one period.
 \end{funcdesc}
 
 \begin{funcdesc}{walk}{p\, visit\, arg}
index 5c6bf7772c0156177b79f9c3c114d1e4f4a13859..d43d3e13d9f21958a77d7559b379a7d4fb1f26d8 100644 (file)
@@ -125,8 +125,8 @@ slashes separating \var{head} from \var{tail}).
 \begin{funcdesc}{splitext}{p}
 Split the pathname \var{p} in a pair \code{(\var{root}, \var{ext})}
 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 \var{ext} is empty or begins with a period and contains
+at most one period.
 \end{funcdesc}
 
 \begin{funcdesc}{walk}{p\, visit\, arg}