From: Ezio Melotti Date: Mon, 25 Jan 2010 11:24:37 +0000 (+0000) Subject: #7775: fixed docstring for rpartition X-Git-Tag: v2.7a3~88 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1fafaab5e5dac8e25c22c7b3d76ef8d3d3a967f0;p=thirdparty%2FPython%2Fcpython.git #7775: fixed docstring for rpartition --- diff --git a/Objects/bytearrayobject.c b/Objects/bytearrayobject.c index fdeec4cf7a3f..9d1ef9910d9e 100644 --- a/Objects/bytearrayobject.c +++ b/Objects/bytearrayobject.c @@ -2112,7 +2112,7 @@ bytearray_partition(PyByteArrayObject *self, PyObject *sep_obj) } PyDoc_STRVAR(rpartition__doc__, -"B.rpartition(sep) -> (tail, sep, head)\n\ +"B.rpartition(sep) -> (head, sep, tail)\n\ \n\ Searches for the separator sep in B, starting at the end of B,\n\ and returns the part before it, the separator itself, and the\n\ diff --git a/Objects/stringobject.c b/Objects/stringobject.c index 43ef3fa0b6ce..8434bf8de77a 100644 --- a/Objects/stringobject.c +++ b/Objects/stringobject.c @@ -1495,7 +1495,7 @@ string_partition(PyStringObject *self, PyObject *sep_obj) } PyDoc_STRVAR(rpartition__doc__, -"S.rpartition(sep) -> (tail, sep, head)\n\ +"S.rpartition(sep) -> (head, sep, tail)\n\ \n\ Search for the separator sep in S, starting at the end of S, and return\n\ the part before it, the separator itself, and the part after it. If the\n\ diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index 3bb797438e7a..130ca48463c7 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c @@ -7461,7 +7461,7 @@ unicode_partition(PyUnicodeObject *self, PyObject *separator) } PyDoc_STRVAR(rpartition__doc__, - "S.rpartition(sep) -> (tail, sep, head)\n\ + "S.rpartition(sep) -> (head, sep, tail)\n\ \n\ Search for the separator sep in S, starting at the end of S, and return\n\ the part before it, the separator itself, and the part after it. If the\n\