diff --git a/Objects/bytearrayobject.c b/Objects/bytearrayobject.c index 3d7b0b2aa56..d80e694ba95 100644 --- a/Objects/bytearrayobject.c +++ b/Objects/bytearrayobject.c @@ -2337,7 +2337,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\ Search for the separator sep in B, starting at the end of B,\n\ and return the part before it, the separator itself, and the\n\ diff --git a/Objects/bytesobject.c b/Objects/bytesobject.c index fb4a845b40d..6584462e4dd 100644 --- a/Objects/bytesobject.c +++ b/Objects/bytesobject.c @@ -1250,7 +1250,7 @@ bytes_partition(PyBytesObject *self, PyObject *sep_obj) } PyDoc_STRVAR(rpartition__doc__, -"B.rpartition(sep) -> (tail, sep, head)\n\ +"B.rpartition(sep) -> (head, sep, tail)\n\ \n\ Search for the separator sep in B, starting at the end of B,\n\ and return the part before it, the separator itself, and the\n\ diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index 62bad6db72d..5fd23729b6a 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c @@ -8386,7 +8386,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\