diff Doc/lib/libstdtypes.tex @ 38335:f9332ad4287a legacy-trunk

needforspeed: partition implementation, part two. feel free to improve the documentation and the docstrings.
author Fredrik Lundh <fredrik@pythonware.com>
date Fri, 26 May 2006 08:54:28 +0000
parents 81e385a641ef
children 82b680846df8
line wrap: on
line diff
--- a/Doc/lib/libstdtypes.tex	Fri May 26 08:41:25 2006 +0000
+++ b/Doc/lib/libstdtypes.tex	Fri May 26 08:54:28 2006 +0000
@@ -727,6 +727,14 @@
 \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