There was an error while loading. Please reload this page.
1 parent c1ee488 commit bfbc29cCopy full SHA for bfbc29c
2 files changed
Doc/c-api/unicode.rst
@@ -1663,10 +1663,6 @@ They all return *NULL* or ``-1`` if an exception occurs.
1663
* :const:`Py_True` or :const:`Py_False` for successful comparisons
1664
* :const:`Py_NotImplemented` in case the type combination is unknown
1665
1666
- Note that :const:`Py_EQ` and :const:`Py_NE` comparisons can cause a
1667
- :exc:`UnicodeWarning` in case the conversion of the arguments to Unicode fails
1668
- with a :exc:`UnicodeDecodeError`.
1669
-
1670
Possible values for *op* are :const:`Py_GT`, :const:`Py_GE`, :const:`Py_EQ`,
1671
:const:`Py_NE`, :const:`Py_LT`, and :const:`Py_LE`.
1672
Include/unicodeobject.h
@@ -2047,10 +2047,6 @@ PyAPI_FUNC(int) _PyUnicode_EqualToASCIIString(
2047
- Py_True or Py_False for successful comparisons
2048
- Py_NotImplemented in case the type combination is unknown
2049
2050
- Note that Py_EQ and Py_NE comparisons can cause a UnicodeWarning in
2051
- case the conversion of the arguments to Unicode fails with a
2052
- UnicodeDecodeError.
2053
2054
Possible values for op:
2055
2056
Py_GT, Py_GE, Py_EQ, Py_NE, Py_LT, Py_LE
0 commit comments