Mercurial > cpython-lru_cache-weakref
diff Doc/lib/libstdtypes.tex @ 38336:82b680846df8 legacy-trunk
Clarify docs for str.partition().
| author | Georg Brandl <georg@python.org> |
|---|---|
| date | Fri, 26 May 2006 09:05:54 +0000 |
| parents | f9332ad4287a |
| children | b7b7615ea5f5 |
line wrap: on
line diff
--- a/Doc/lib/libstdtypes.tex Fri May 26 08:54:28 2006 +0000 +++ b/Doc/lib/libstdtypes.tex Fri May 26 09:05:54 2006 +0000 @@ -728,10 +728,11 @@ \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}
