]> granicus.if.org Git - python/commitdiff
Merged revisions 77743 via svnmerge from
authorEzio Melotti <ezio.melotti@gmail.com>
Mon, 25 Jan 2010 11:46:11 +0000 (11:46 +0000)
committerEzio Melotti <ezio.melotti@gmail.com>
Mon, 25 Jan 2010 11:46:11 +0000 (11:46 +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/stringobject.c
Objects/unicodeobject.c

index c4a25c0d9a4ecdd0c8c33926745901824d9c2dba..1b4c22a9e0630b9aef5858b78dd11e0cd3fa622e 100644 (file)
@@ -2390,7 +2390,7 @@ bytes_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\
index ebf97b5b06b4e04adf2f6bc2f2b85c8cad1d4f0f..996c260008ce0436c96ba468ee411b19cd28cc89 100644 (file)
@@ -1620,7 +1620,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\
index 55c781e4d811cb03e45ddb8a4e2e55df7ff48063..3731ac7601cf497beb5073cea66d4aadac59c0e6 100644 (file)
@@ -7603,7 +7603,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\