mirror of
https://github.com/python/cpython.git
synced 2025-11-01 10:45:30 +00:00
Rephrase PyUnicode_CompareWithASCIIString() documentation
This commit is contained in:
parent
ece98d6e08
commit
80e788a5dd
1 changed files with 3 additions and 2 deletions
|
|
@ -1063,8 +1063,9 @@ They all return *NULL* or ``-1`` if an exception occurs.
|
|||
.. c:function:: int PyUnicode_CompareWithASCIIString(PyObject *uni, char *string)
|
||||
|
||||
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
|
||||
string (it is interpreted as ISO-8859-1).
|
||||
than, equal, and greater than, respectively. It is best to pass only
|
||||
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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue