Skip to content

Commit 0957364

Browse files
cdce8pencukou
andcommitted
Apply suggestions from review
Co-authored-by: Petr Viktorin <[email protected]>
1 parent 0b2d9bb commit 0957364

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

Doc/c-api/unicode.rst

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1398,12 +1398,20 @@ They all return ``NULL`` or ``-1`` if an exception occurs.
13981398
separator. At most *maxsplit* splits will be done. If negative, no limit is
13991399
set. Separators are not included in the resulting list.
14001400
1401+
On error, return ``NULL`` with an exception set.
1402+
1403+
Equivalent to :py:meth:`str.split`.
1404+
14011405
14021406
.. c:function:: PyObject* PyUnicode_RSplit(PyObject *unicode, PyObject *sep, Py_ssize_t maxsplit)
14031407
14041408
Similar to :c:func:`PyUnicode_Split`, but splitting will be done beginning
14051409
at the end of the string.
14061410
1411+
On error, return ``NULL`` with an exception set.
1412+
1413+
Equivalent to :py:meth:`str.rsplit`.
1414+
14071415
14081416
.. c:function:: PyObject* PyUnicode_Splitlines(PyObject *unicode, int keepends)
14091417
@@ -1421,6 +1429,10 @@ They all return ``NULL`` or ``-1`` if an exception occurs.
14211429
14221430
*sep* must not be empty.
14231431
1432+
On error, return ``NULL`` with an exception set.
1433+
1434+
Equivalent to :py:meth:`str.partition`.
1435+
14241436
14251437
.. c:function:: PyObject* PyUnicode_RPartition(PyObject *unicode, PyObject *sep)
14261438
@@ -1430,6 +1442,10 @@ They all return ``NULL`` or ``-1`` if an exception occurs.
14301442
14311443
*sep* must not be empty.
14321444
1445+
On error, return ``NULL`` with an exception set.
1446+
1447+
Equivalent to :py:meth:`str.rpartition`.
1448+
14331449
14341450
.. c:function:: PyObject* PyUnicode_Join(PyObject *separator, PyObject *seq)
14351451

0 commit comments

Comments
 (0)