]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Issue #29009: Remove outdated doc of PyUnicode_RichCompare.
authorXiang Zhang <angwerzx@126.com>
Mon, 19 Dec 2016 10:35:14 +0000 (18:35 +0800)
committerXiang Zhang <angwerzx@126.com>
Mon, 19 Dec 2016 10:35:14 +0000 (18:35 +0800)
Doc/c-api/unicode.rst
Include/unicodeobject.h

index 3c7b9cc46373eca71e8c699a71f0b840792a97d8..457a9be5a6343cc49a20efe26be94b78aba5a3c2 100644 (file)
@@ -1663,10 +1663,6 @@ They all return *NULL* or ``-1`` if an exception occurs.
    * :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`.
 
index 90f2b72c2062719429b40b57dfdad65cb3e774dc..9308a6aa96af9009290ae22dfc9f144e80579767 100644 (file)
@@ -2047,10 +2047,6 @@ PyAPI_FUNC(int) _PyUnicode_EqualToASCIIString(
    - 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