Issue #28822: Adjust indices handling of PyUnicode_FindChar().

This commit is contained in:
Xiang Zhang 2016-12-20 22:52:33 +08:00
parent 38f225dd48
commit b211068f5c
5 changed files with 55 additions and 8 deletions

View file

@ -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)