Closed
Description
Python 3.13 moved the private _PyUnicode_EQ() function to internal C API. mypy and Pyodide 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
1
if a is equal to b. - Return
0
if a is not equal to b. - Set a
TypeError
exception and return-1
if a or b is not a Pythonstr
object. - The function always succeed if a and b are strings.