mirror of
https://github.com/python/cpython.git
synced 2025-11-28 22:18:54 +00:00
Clarify docs for str.partition().
This commit is contained in:
parent
06a69dd8ff
commit
0c93ff6709
1 changed files with 5 additions and 4 deletions
|
|
@ -728,10 +728,11 @@ a prefix; rather, all combinations of its values are stripped:
|
||||||
\end{methoddesc}
|
\end{methoddesc}
|
||||||
|
|
||||||
\begin{methoddesc}[string]{partition}{sep}
|
\begin{methoddesc}[string]{partition}{sep}
|
||||||
Splits the string at the \var{sep}, and return a 3-tuple containing
|
Splits the string at the first occurence of \var{sep}, and return
|
||||||
the part before the separator, the separator itself, and the part
|
a 3-tuple containing the part before the separator, the separator
|
||||||
after the separator. If the separator is not found, return a 3-tuple
|
itself, and the part after the separator. If the separator is not
|
||||||
containing the string itself, followed by two empty strings.
|
found, return a 3-tuple containing the string itself, followed by
|
||||||
|
two empty strings.
|
||||||
\versionadded{2.5}
|
\versionadded{2.5}
|
||||||
\end{methoddesc}
|
\end{methoddesc}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue