summaryrefslogtreecommitdiffstats
path: root/Doc/c-api
diff options
context:
space:
mode:
authorXiang Zhang <angwerzx@126.com>2016-12-20 14:52:33 (GMT)
committerXiang Zhang <angwerzx@126.com>2016-12-20 14:52:33 (GMT)
commitb211068f5c8e2535ab2dd7f4c43325bbf5b30fad (patch)
treed18683bf67a43286f7184b39a8e3b49f036cc466 /Doc/c-api
parent38f225dd486ab69779eab3cae4fa2375f6c2d8d6 (diff)
downloadcpython-b211068f5c8e2535ab2dd7f4c43325bbf5b30fad.zip
cpython-b211068f5c8e2535ab2dd7f4c43325bbf5b30fad.tar.gz
cpython-b211068f5c8e2535ab2dd7f4c43325bbf5b30fad.tar.bz2
Issue #28822: Adjust indices handling of PyUnicode_FindChar().
Diffstat (limited to 'Doc/c-api')
-rw-r--r--Doc/c-api/unicode.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/Doc/c-api/unicode.rst b/Doc/c-api/unicode.rst
index b31d689..b57d70a 100644
--- a/Doc/c-api/unicode.rst
+++ b/Doc/c-api/unicode.rst
@@ -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)