(original) (raw)
diff -r 3cc193be79ab Doc/c-api/unicode.rst --- a/Doc/c-api/unicode.rst Sun Dec 18 15:01:38 2016 -0500 +++ b/Doc/c-api/unicode.rst Mon Dec 19 14:07:44 2016 +0800 @@ -1668,10 +1668,6 @@ * :const:`Py_True` or :const:`Py_False` for successful comparisons * :const:`Py_NotImplemented` in case the type combination is unknown - Note that :const:`Py_EQ` and :const:`Py_NE` comparisons can cause a - :exc:`UnicodeWarning` in case the conversion of the arguments to Unicode fails - with a :exc:`UnicodeDecodeError`. - Possible values for *op* are :const:`Py_GT`, :const:`Py_GE`, :const:`Py_EQ`, :const:`Py_NE`, :const:`Py_LT`, and :const:`Py_LE`. diff -r 3cc193be79ab Include/unicodeobject.h --- a/Include/unicodeobject.h Sun Dec 18 15:01:38 2016 -0500 +++ b/Include/unicodeobject.h Mon Dec 19 14:07:44 2016 +0800 @@ -2079,10 +2079,6 @@ - Py_True or Py_False for successful comparisons - Py_NotImplemented in case the type combination is unknown - Note that Py_EQ and Py_NE comparisons can cause a UnicodeWarning in - case the conversion of the arguments to Unicode fails with a - UnicodeDecodeError. - Possible values for op: Py_GT, Py_GE, Py_EQ, Py_NE, Py_LT, Py_LE