summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1996-08-19 23:00:50 (GMT)
committerGuido van Rossum <guido@python.org>1996-08-19 23:00:50 (GMT)
commit56b30ea664151de170666bd0fcc49206fc7ba5d4 (patch)
treeae64863c45c36534222b656781b59723213ea576
parent8823972cea8d955fb8a5511a30eb7db15f6fc467 (diff)
downloadcpython-56b30ea664151de170666bd0fcc49206fc7ba5d4.zip
cpython-56b30ea664151de170666bd0fcc49206fc7ba5d4.tar.gz
cpython-56b30ea664151de170666bd0fcc49206fc7ba5d4.tar.bz2
Document actual behavior of splitext().
-rw-r--r--Doc/lib/libppath.tex4
-rw-r--r--Doc/libppath.tex4
2 files changed, 4 insertions, 4 deletions
diff --git a/Doc/lib/libppath.tex b/Doc/lib/libppath.tex
index 5c6bf77..d43d3e1 100644
--- a/Doc/lib/libppath.tex
+++ b/Doc/lib/libppath.tex
@@ -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}
diff --git a/Doc/libppath.tex b/Doc/libppath.tex
index 5c6bf77..d43d3e1 100644
--- a/Doc/libppath.tex
+++ b/Doc/libppath.tex
@@ -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}