mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
gh-124502: Remove _PyUnicode_EQ() function (#125114)
* Replace unicode_compare_eq() with unicode_eq(). * Use unicode_eq() in setobject.c. * Replace _PyUnicode_EQ() with _PyUnicode_Equal(). * Remove unicode_compare_eq() and _PyUnicode_EQ().
This commit is contained in:
parent
7f93dbf6fe
commit
e0c87c64b1
4 changed files with 10 additions and 39 deletions
|
@ -252,11 +252,7 @@ extern Py_ssize_t _PyUnicode_InsertThousandsGrouping(
|
|||
|
||||
extern PyObject* _PyUnicode_FormatLong(PyObject *, int, int, int);
|
||||
|
||||
/* Fast equality check when the inputs are known to be exact unicode types
|
||||
and where the hash values are equal (i.e. a very probable match) */
|
||||
extern int _PyUnicode_EQ(PyObject *, PyObject *);
|
||||
|
||||
// Equality check.
|
||||
// Fast equality check when the inputs are known to be exact unicode types.
|
||||
// Export for '_pickle' shared extension.
|
||||
PyAPI_FUNC(int) _PyUnicode_Equal(PyObject *, PyObject *);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue