mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
Issue #28822: Adjust indices handling of PyUnicode_FindChar().
This commit is contained in:
parent
38f225dd48
commit
b211068f5c
5 changed files with 55 additions and 8 deletions
|
|
@ -1625,6 +1625,9 @@ They all return *NULL* or ``-1`` if an exception occurs.
|
|||
|
||||
.. versionadded:: 3.3
|
||||
|
||||
.. versionchanged:: 3.7
|
||||
*start* and *end* are now adjusted to behave like ``str[start:end]``.
|
||||
|
||||
|
||||
.. c:function:: Py_ssize_t PyUnicode_Count(PyObject *str, PyObject *substr, \
|
||||
Py_ssize_t start, Py_ssize_t end)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue