diff options
author | Fredrik Lundh <fredrik@pythonware.com> | 2006-05-26 08:54:28 (GMT) |
---|---|---|
committer | Fredrik Lundh <fredrik@pythonware.com> | 2006-05-26 08:54:28 (GMT) |
commit | 06a69dd8ffcbac16e7f5c81b457c40ca4ce94c00 (patch) | |
tree | 96534671057ec865841680a25ef0af247b012a7b /Doc/lib | |
parent | 19bebf2e2fd6121435c3af26fbd857f1994df8bd (diff) | |
download | cpython-06a69dd8ffcbac16e7f5c81b457c40ca4ce94c00.zip cpython-06a69dd8ffcbac16e7f5c81b457c40ca4ce94c00.tar.gz cpython-06a69dd8ffcbac16e7f5c81b457c40ca4ce94c00.tar.bz2 |
needforspeed: partition implementation, part two.
feel free to improve the documentation and the docstrings.
Diffstat (limited to 'Doc/lib')
-rw-r--r-- | Doc/lib/libstdtypes.tex | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Doc/lib/libstdtypes.tex b/Doc/lib/libstdtypes.tex index 6760e47..80d2717 100644 --- a/Doc/lib/libstdtypes.tex +++ b/Doc/lib/libstdtypes.tex @@ -727,6 +727,14 @@ a prefix; rather, all combinations of its values are stripped: \versionchanged[Support for the \var{chars} argument]{2.2.2} \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. +\versionadded{2.5} +\end{methoddesc} + \begin{methoddesc}[string]{replace}{old, new\optional{, count}} Return a copy of the string with all occurrences of substring \var{old} replaced by \var{new}. If the optional argument |