summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEzio Melotti <ezio.melotti@gmail.com>2010-01-25 11:46:11 +0000
committerEzio Melotti <ezio.melotti@gmail.com>2010-01-25 11:46:11 +0000
commitdabb5f7db93578de4657ae57dc0ade33f4f534aa (patch)
treeef578d87d73838dacb933b37cb61ddcceefab4ee
parent00b9051a7e28f13fccce409fa63f5cbdb49f280d (diff)
downloadcpython-git-dabb5f7db93578de4657ae57dc0ade33f4f534aa.tar.gz
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 ........
-rw-r--r--Objects/bytearrayobject.c2
-rw-r--r--Objects/stringobject.c2
-rw-r--r--Objects/unicodeobject.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/Objects/bytearrayobject.c b/Objects/bytearrayobject.c
index c4a25c0d9a..1b4c22a9e0 100644
--- a/Objects/bytearrayobject.c
+++ b/Objects/bytearrayobject.c
@@ -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\
diff --git a/Objects/stringobject.c b/Objects/stringobject.c
index ebf97b5b06..996c260008 100644
--- a/Objects/stringobject.c
+++ b/Objects/stringobject.c
@@ -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\
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c
index 55c781e4d8..3731ac7601 100644
--- a/Objects/unicodeobject.c
+++ b/Objects/unicodeobject.c
@@ -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\