PyUnicodeUCS2_RichCompare

Rich compare two strings and return one of the following:

- NULL in case an exception was raised - Py_True or Py_False for successfuly 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

*/ /// Availability: >= 2.

  1. PyObject* PyUnicodeUCS2_RichCompare(PyObject* left, PyObject* right, int op)
    version(Python_2_5_Or_Later)
    PyUnicodeUCS2_RichCompare
  2. alias PyUnicode_RichCompare = PyUnicodeUCS2_RichCompare

Meta