]> granicus.if.org Git - python/commitdiff
Merged revisions 77743 via svnmerge from
authorEzio Melotti <ezio.melotti@gmail.com>
Mon, 25 Jan 2010 11:58:28 +0000 (11:58 +0000)
committerEzio Melotti <ezio.melotti@gmail.com>
Mon, 25 Jan 2010 11:58:28 +0000 (11:58 +0000)
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r77743 | ezio.melotti | 2010-01-25 13:24:37 +0200 (Mon, 25 Jan 2010) | 1 line

  #7775: fixed docstring for rpartition
........

Objects/bytearrayobject.c
Objects/bytesobject.c
Objects/unicodeobject.c

index 7d525222b917f43a34dc912c83313274dae84364..3603d4f9f8640d378b522ed068b2005e11d16b2b 100644 (file)
@@ -2044,7 +2044,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\
index 183722ca7430d9435006cef6eb065d725d7e9ff4..890d0447df13305726e8c8d5f46b0bc287dc1d54 100644 (file)
@@ -1061,7 +1061,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\
index 35683d0d31e19080b2941d303db89b5703c25d31..79b0aa7457a9b626d2df89b07cedd21261622726 100644 (file)
@@ -8201,7 +8201,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\