Mercurial > cpython-lru_cache-weakref
diff Doc/lib/libstdtypes.tex @ 38391:78771d673b4b legacy-trunk
needspeed: rpartition documentation, tests, and a bug fixes.
feel free to add more tests and improve the documentation.
| author | Fredrik Lundh <fredrik@pythonware.com> |
|---|---|
| date | Fri, 26 May 2006 18:24:15 +0000 |
| parents | b7b7615ea5f5 |
| children | 1cafbcd7f55c |
line wrap: on
line diff
--- a/Doc/lib/libstdtypes.tex Fri May 26 18:15:38 2006 +0000 +++ b/Doc/lib/libstdtypes.tex Fri May 26 18:24:15 2006 +0000 @@ -763,6 +763,15 @@ \versionchanged[Support for the \var{fillchar} argument]{2.4} \end{methoddesc} +\begin{methoddesc}[string]{rpartition}{sep} +Split the string at the last occurrence 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} + \begin{methoddesc}[string]{rsplit}{\optional{sep \optional{,maxsplit}}} Return a list of the words in the string, using \var{sep} as the delimiter string. If \var{maxsplit} is given, at most \var{maxsplit}
