summaryrefslogtreecommitdiffstats
path: root/Objects/stringobject.c
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2006-09-04 15:32:48 (GMT)
committerRaymond Hettinger <python@rcn.com>2006-09-04 15:32:48 (GMT)
commita0c95fa4d8f6cdc500e29a390bc7357a74b69572 (patch)
tree955e931347c407f79eaaa80c5ef91dab38ab53a2 /Objects/stringobject.c
parentbb0996ccc53c14956f3111500ccbadba98062e96 (diff)
downloadcpython-a0c95fa4d8f6cdc500e29a390bc7357a74b69572.zip
cpython-a0c95fa4d8f6cdc500e29a390bc7357a74b69572.tar.gz
cpython-a0c95fa4d8f6cdc500e29a390bc7357a74b69572.tar.bz2
Fix endcase for str.rpartition()
Diffstat (limited to 'Objects/stringobject.c')
-rw-r--r--Objects/stringobject.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/stringobject.c b/Objects/stringobject.c
index f3ef4b8..4c2faf4 100644
--- a/Objects/stringobject.c
+++ b/Objects/stringobject.c
@@ -1543,11 +1543,11 @@ string_partition(PyStringObject *self, PyObject *sep_obj)
}
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 *
string_rpartition(PyStringObject *self, PyObject *sep_obj)