Kaydet (Commit) 1fafaab5 authored tarafından Ezio Melotti's avatar Ezio Melotti

#7775: fixed docstring for rpartition

üst 47b66590
...@@ -2112,7 +2112,7 @@ bytearray_partition(PyByteArrayObject *self, PyObject *sep_obj) ...@@ -2112,7 +2112,7 @@ bytearray_partition(PyByteArrayObject *self, PyObject *sep_obj)
} }
PyDoc_STRVAR(rpartition__doc__, PyDoc_STRVAR(rpartition__doc__,
"B.rpartition(sep) -> (tail, sep, head)\n\ "B.rpartition(sep) -> (head, sep, tail)\n\
\n\ \n\
Searches for the separator sep in B, starting at the end of B,\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\ and returns the part before it, the separator itself, and the\n\
......
...@@ -1495,7 +1495,7 @@ string_partition(PyStringObject *self, PyObject *sep_obj) ...@@ -1495,7 +1495,7 @@ string_partition(PyStringObject *self, PyObject *sep_obj)
} }
PyDoc_STRVAR(rpartition__doc__, PyDoc_STRVAR(rpartition__doc__,
"S.rpartition(sep) -> (tail, sep, head)\n\ "S.rpartition(sep) -> (head, sep, tail)\n\
\n\ \n\
Search for the separator sep in S, starting at the end of S, and return\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\ the part before it, the separator itself, and the part after it. If the\n\
......
...@@ -7461,7 +7461,7 @@ unicode_partition(PyUnicodeObject *self, PyObject *separator) ...@@ -7461,7 +7461,7 @@ unicode_partition(PyUnicodeObject *self, PyObject *separator)
} }
PyDoc_STRVAR(rpartition__doc__, PyDoc_STRVAR(rpartition__doc__,
"S.rpartition(sep) -> (tail, sep, head)\n\ "S.rpartition(sep) -> (head, sep, tail)\n\
\n\ \n\
Search for the separator sep in S, starting at the end of S, and return\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\ the part before it, the separator itself, and the part after it. If the\n\
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment