8000 gh-46236: Document PyUnicode_RSplit, PyUnicode_Partition and PyUnicode_RPartition by cdce8p · Pull Request #130191 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-46236: Document PyUnicode_RSplit, PyUnicode_Partition and PyUnicode_RPartition #130191

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Feb 20, 2025
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
0