summaryrefslogtreecommitdiffstats
path: root/Doc/c-api/unicode.rst
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2016-12-05 22:13:34 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2016-12-05 22:13:34 (GMT)
commit419967b8320be40d7948bde042e92b6e7d1f48a7 (patch)
treebbdd835e910e5610646af21697eba92d1076d9c6 /Doc/c-api/unicode.rst
parent7bc01c32b16a4324070ed28847e43c4c7d08eed2 (diff)
downloadcpython-419967b8320be40d7948bde042e92b6e7d1f48a7.zip
cpython-419967b8320be40d7948bde042e92b6e7d1f48a7.tar.gz
cpython-419967b8320be40d7948bde042e92b6e7d1f48a7.tar.bz2
Issue #28808: PyUnicode_CompareWithASCIIString() now never raises exceptions.
Diffstat (limited to 'Doc/c-api/unicode.rst')
-rw-r--r--Doc/c-api/unicode.rst3
1 files changed, 1 insertions, 2 deletions
diff --git a/Doc/c-api/unicode.rst b/Doc/c-api/unicode.rst
index acdef7d..3c7b9cc 100644
--- a/Doc/c-api/unicode.rst
+++ b/Doc/c-api/unicode.rst
@@ -1652,8 +1652,7 @@ They all return *NULL* or ``-1`` if an exception occurs.
ASCII-encoded strings, but the function interprets the input string as
ISO-8859-1 if it contains non-ASCII characters.
- This function returns ``-1`` upon failure, so one should call
- :c:func:`PyErr_Occurred` to check for errors.
+ This function does not raise exceptions.
.. c:function:: PyObject* PyUnicode_RichCompare(PyObject *left, PyObject *right, int op)