Mercurial > cpython-lru_cache-weakref
diff Objects/unicodeobject.c @ 39743:d1b497ec190a 2.5
Fix str.rpartition(sep) when sep is not found in str.
Partially from SF patch #1551339, but also taken from head.
| author | Neal Norwitz <nnorwitz@gmail.com> |
|---|---|
| date | Tue, 05 Sep 2006 02:21:38 +0000 |
| parents | 02bbeec2714f |
| children | 798935e1295e |
line wrap: on
line diff
--- a/Objects/unicodeobject.c Tue Sep 05 02:00:21 2006 +0000 +++ b/Objects/unicodeobject.c Tue Sep 05 02:21:38 2006 +0000 @@ -6708,11 +6708,11 @@ } PyDoc_STRVAR(rpartition__doc__, -"S.rpartition(sep) -> (head, sep, tail)\n\ +"S.rpartition(sep) -> (tail, sep, head)\n\ \n\ Searches for the separator sep in S, starting at the end of S, and returns\n\ the part before it, the separator itself, and the part after it. If the\n\ -separator is not found, returns S and two empty strings."); +separator is not found, returns two empty strings and S."); static PyObject* unicode_rpartition(PyUnicodeObject *self, PyObject *separator)
