]> granicus.if.org Git - python/commitdiff
#7775: fixed docstring for rpartition
authorEzio Melotti <ezio.melotti@gmail.com>
Mon, 25 Jan 2010 11:24:37 +0000 (11:24 +0000)
committerEzio Melotti <ezio.melotti@gmail.com>
Mon, 25 Jan 2010 11:24:37 +0000 (11:24 +0000)
Objects/bytearrayobject.c
Objects/stringobject.c
Objects/unicodeobject.c

index fdeec4cf7a3fcae45fd0db58b27f34a980aebe6a..9d1ef9910d9efa3b437bc5a449cc9eeade4c7229 100644 (file)
@@ -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\
index 43ef3fa0b6cee840369c73d81552495ed41dba05..8434bf8de77ac22d907d4c89234749ab1c46f835 100644 (file)
@@ -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\
index 3bb797438e7a5d3cbd3c26c4357b8f8fd2041a92..130ca48463c7dd2963afb7485bf90435d4bea206 100644 (file)
@@ -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\