Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Suggestion
  • Loading branch information
cdce8p committed Feb 16, 2025
commit 0e52d8dc4e576b7e50e453fb6e0319acb916bfad
8 changes: 4 additions & 4 deletions Doc/c-api/unicode.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1414,10 +1414,10 @@ They all return ``NULL`` or ``-1`` if an exception occurs.

.. c:function:: PyObject* PyUnicode_Partition(PyObject *unicode, PyObject *sep)

Split the string at the first occurrence of *sep*, and return a 3-tuple
containing the part before the separator, the separator itself, and the part
after the separator. If the separator is not found, return a 3-tuple
containing the string itself, followed by two empty strings.
Split the Unicode string at the first occurrence of *sep*, and return
a 3-tuple containing the part before the separator, the separator itself,
and the part after the separator. If the separator is not found,
return a 3-tuple containing the string itself, followed by two empty strings.


.. c:function:: PyObject* PyUnicode_RPartition(PyObject *unicode, PyObject *sep)
Expand Down
Loading