]> granicus.if.org Git - python/commitdiff
Clarify docs for str.partition().
authorGeorg Brandl <georg@python.org>
Fri, 26 May 2006 09:05:54 +0000 (09:05 +0000)
committerGeorg Brandl <georg@python.org>
Fri, 26 May 2006 09:05:54 +0000 (09:05 +0000)
Doc/lib/libstdtypes.tex

index 80d27173a5b72c305024d2feea8e07339373a24e..896f53f94a54e45c005c8979d89f935e17833a36 100644 (file)
@@ -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}