summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2016-12-05 22:17:45 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2016-12-05 22:17:45 (GMT)
commit9a953dbb34b722dc16e98ef7103eb49b72a04e5e (patch)
treeec4dbef68599b6502ca6b425ad036c6d8d02f405 /Doc
parent19d246745d9d013c12e9560dd020d778381780fb (diff)
parent419967b8320be40d7948bde042e92b6e7d1f48a7 (diff)
downloadcpython-9a953dbb34b722dc16e98ef7103eb49b72a04e5e.zip
cpython-9a953dbb34b722dc16e98ef7103eb49b72a04e5e.tar.gz
cpython-9a953dbb34b722dc16e98ef7103eb49b72a04e5e.tar.bz2
Issue #28808: PyUnicode_CompareWithASCIIString() now never raises exceptions.
Diffstat (limited to 'Doc')
-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 fc91d0c..c11e049 100644
--- a/Doc/c-api/unicode.rst
+++ b/Doc/c-api/unicode.rst
@@ -1657,8 +1657,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)