Mercurial > cpython-lru_cache-weakref
diff Objects/unicodeobject.c @ 39734:cfb77fff0240 legacy-trunk
Fix endcase for str.rpartition()
| author | Raymond Hettinger <python@rcn.com> |
|---|---|
| date | Mon, 04 Sep 2006 15:32:48 +0000 |
| parents | e8a65bbd6a29 |
| children | 6ba402b60041 |
line wrap: on
line diff
--- a/Objects/unicodeobject.c Sun Sep 03 01:20:46 2006 +0000 +++ b/Objects/unicodeobject.c Mon Sep 04 15:32:48 2006 +0000 @@ -6712,11 +6712,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)
