diff options
author | Victor Stinner <vstinner@python.org> | 2024-10-09 08:15:17 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-09 08:15:17 (GMT) |
commit | e0c87c64b1cb4112ed5cfc1ae84ff8e48b1c0340 (patch) | |
tree | 6bb6ba38ecbc3cfe2a062f91326561ade463bfd2 /Include | |
parent | 7f93dbf6fec152888727a0f25a3aa030d1fe27ca (diff) | |
download | cpython-e0c87c64b1cb4112ed5cfc1ae84ff8e48b1c0340.zip cpython-e0c87c64b1cb4112ed5cfc1ae84ff8e48b1c0340.tar.gz cpython-e0c87c64b1cb4112ed5cfc1ae84ff8e48b1c0340.tar.bz2 |
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().
Diffstat (limited to 'Include')
-rw-r--r-- | Include/internal/pycore_unicodeobject.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/Include/internal/pycore_unicodeobject.h b/Include/internal/pycore_unicodeobject.h index 20497ee..a60372f 100644 --- a/Include/internal/pycore_unicodeobject.h +++ b/Include/internal/pycore_unicodeobject.h @@ -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 *); |