diff options
author | Xiang Zhang <angwerzx@126.com> | 2016-12-20 14:52:33 (GMT) |
---|---|---|
committer | Xiang Zhang <angwerzx@126.com> | 2016-12-20 14:52:33 (GMT) |
commit | b211068f5c8e2535ab2dd7f4c43325bbf5b30fad (patch) | |
tree | d18683bf67a43286f7184b39a8e3b49f036cc466 /Doc/c-api | |
parent | 38f225dd486ab69779eab3cae4fa2375f6c2d8d6 (diff) | |
download | cpython-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.rst | 3 |
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) |