Commit 80e788a5 authored by Victor Stinner's avatar Victor Stinner

Rephrase PyUnicode_CompareWithASCIIString() documentation

parent ece98d6e
...@@ -1063,8 +1063,9 @@ They all return *NULL* or ``-1`` if an exception occurs. ...@@ -1063,8 +1063,9 @@ They all return *NULL* or ``-1`` if an exception occurs.
.. c:function:: int PyUnicode_CompareWithASCIIString(PyObject *uni, char *string) .. c:function:: int PyUnicode_CompareWithASCIIString(PyObject *uni, char *string)
Compare a unicode object, *uni*, with *string* and return -1, 0, 1 for less Compare a unicode object, *uni*, with *string* and return -1, 0, 1 for less
than, equal, and greater than, respectively. *string* is an ASCII-encoded than, equal, and greater than, respectively. It is best to pass only
string (it is interpreted as ISO-8859-1). ASCII-encoded strings, but the function interprets the input string as
ISO-8859-1 if it contains non-ASCII characters".
.. c:function:: int PyUnicode_RichCompare(PyObject *left, PyObject *right, int op) .. c:function:: int PyUnicode_RichCompare(PyObject *left, PyObject *right, int op)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment