Skip to content

Commit 94dc538

Browse files
committed
Review
1 parent f02d599 commit 94dc538

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Doc/c-api/unicode.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1418,13 +1418,15 @@ They all return ``NULL`` or ``-1`` if an exception occurs.
14181418
a 3-tuple containing the part before the separator, the separator itself,
14191419
and the part after the separator. If the separator is not found,
14201420
return a 3-tuple containing the string itself, followed by two empty strings.
1421+
*sep* must not be empty.
14211422
14221423
14231424
.. c:function:: PyObject* PyUnicode_RPartition(PyObject *unicode, PyObject *sep)
14241425
14251426
Similar to :c:func:`PyUnicode_Partition`, but split a Unicode string at the
14261427
last occurrence of *sep*. If the separator is not found, return a 3-tuple
1427-
containing two empty strings, followed by the string itself.
1428+
containing two empty strings, followed by the string itself. *sep* must
1429+
not be empty.
14281430
14291431
14301432
.. c:function:: PyObject* PyUnicode_Join(PyObject *separator, PyObject *seq)
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
Document :c:func:`PyUnicode_RSplit`, :c:func:`PyUnicode_Partition` and
1+
C API: Document :c:func:`PyUnicode_RSplit`, :c:func:`PyUnicode_Partition` and
22
:c:func:`PyUnicode_RPartition`.

0 commit comments

Comments
 (0)