mirror of
https://github.com/python/cpython.git
synced 2025-07-23 19:25:40 +00:00
Issue #28808: PyUnicode_CompareWithASCIIString() now never raises exceptions.
This commit is contained in:
commit
9a953dbb34
4 changed files with 23 additions and 5 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue