gh-124502: Add PyUnicode_Equal() function (#124504)

This commit is contained in:
Victor Stinner 2024-10-07 23:24:53 +02:00 committed by GitHub
parent c5df1cb7bd
commit a7f0727ca5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 111 additions and 2 deletions

View file

@ -966,6 +966,10 @@ PyAPI_FUNC(int) PyUnicode_EqualToUTF8(PyObject *, const char *);
PyAPI_FUNC(int) PyUnicode_EqualToUTF8AndSize(PyObject *, const char *, Py_ssize_t);
#endif
#if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x030e0000
PyAPI_FUNC(int) PyUnicode_Equal(PyObject *str1, PyObject *str2);
#endif
/* Rich compare two strings and return one of the following:
- NULL in case an exception was raised