]> granicus.if.org Git - python/commitdiff
Merged revisions 77745 via svnmerge from
authorEzio Melotti <ezio.melotti@gmail.com>
Mon, 25 Jan 2010 12:02:24 +0000 (12:02 +0000)
committerEzio Melotti <ezio.melotti@gmail.com>
Mon, 25 Jan 2010 12:02:24 +0000 (12:02 +0000)
svn+ssh://pythondev@svn.python.org/python/branches/py3k

................
  r77745 | ezio.melotti | 2010-01-25 13:58:28 +0200 (Mon, 25 Jan 2010) | 9 lines

  Merged revisions 77743 via svnmerge from
  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 3d7b0b2aa56c7a2e535769fce2d4fcc752bc01d2..d80e694ba956d6eaf1ff47b7f37d82e855d1e7d3 100644 (file)
@@ -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\
index fb4a845b40d2a56995ed77f6668348cb0d05f803..6584462e4dd2b3a5a20871c47f1f69399ee34f39 100644 (file)
@@ -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\
index 62bad6db72d71c6f96d0ab0b9398a6e2a33358ed..5fd23729b6a9b4b1aa5574a1fd853eecc0393d64 100644 (file)
@@ -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\