Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.3k
Closed
Description
Python 3.13 moved the private _PyUnicode_EQ() function to internal C API.mypy andPyodide are using it.
I propose to add a public PyUnicode_Equal(a, b) function to the limited C API 3.14 to replace the private _PyUnicode_EQ() function:
- Return
1ifa is equal tob. - Return
0ifa is not equal tob. - Set a
TypeErrorexception and return-1ifa orb is not a Pythonstrobject. - The function always succeed ifa andb are strings.