summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2006-05-26 09:05:54 (GMT)
committerGeorg Brandl <georg@python.org>2006-05-26 09:05:54 (GMT)
commit0c93ff67097f3cb524ac6f7247bd29f487352471 (patch)
tree9bfd987368431fccd0cf8a650f212cac1d8b2fe3
parent06a69dd8ffcbac16e7f5c81b457c40ca4ce94c00 (diff)
downloadcpython-0c93ff67097f3cb524ac6f7247bd29f487352471.zip
cpython-0c93ff67097f3cb524ac6f7247bd29f487352471.tar.gz
cpython-0c93ff67097f3cb524ac6f7247bd29f487352471.tar.bz2
Clarify docs for str.partition().
-rw-r--r--Doc/lib/libstdtypes.tex9
1 files changed, 5 insertions, 4 deletions
diff --git a/Doc/lib/libstdtypes.tex b/Doc/lib/libstdtypes.tex
index 80d2717..896f53f 100644
--- a/Doc/lib/libstdtypes.tex
+++ b/Doc/lib/libstdtypes.tex
@@ -728,10 +728,11 @@ a prefix; rather, all combinations of its values are stripped:
\end{methoddesc}
\begin{methoddesc}[string]{partition}{sep}
-Splits the string at the \var{sep}, and return a 3-tuple containing
-the part before the separator, the separator itself, and the part
-after the separator. If the separator is not found, return a 3-tuple
-containing the string itself, followed by two empty strings.
+Splits the string at the first occurence of \var{sep}, and return
+a 3-tuple containing the part before the separator, the separator
+itself, and the part after the separator. If the separator is not
+found, return a 3-tuple containing the string itself, followed by
+two empty strings.
\versionadded{2.5}
\end{methoddesc}