Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c22ed14

Browse files
committed
document PyUnicode_CompareWithASCIIString
1 parent e11787a commit c22ed14

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

Doc/c-api/unicode.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -869,6 +869,12 @@ They all return *NULL* or ``-1`` if an exception occurs.
869869
respectively.
870870

871871

872+
.. cfunction:: int PyUnicode_CompareWithASCIIString(PyObject *uni, char *string)
873+
874+
Compare a unicode object, *uni*, with *string* and return -1, 0, 1 for less
875+
than, equal, and greater than, respectively.
876+
877+
872878
.. cfunction:: int PyUnicode_RichCompare(PyObject *left, PyObject *right, int op)
873879

874880
Rich compare two unicode strings and return one of the following:

0 commit comments

Comments
 (0)