diff options
author | Ken Jin <kenjin@python.org> | 2024-03-08 00:21:21 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-08 00:21:21 +0800 |
commit | 41457c7fdb04819d04a528b8dfa72c1aa5745cc9 (patch) | |
tree | 45a20bbed062946dae7b20c9fb616245b2751485 /Objects/tupleobject.c | |
parent | 4298d69d4b2f7d0e9d93ad325238930bd6235dbf (diff) | |
download | cpython-41457c7fdb04819d04a528b8dfa72c1aa5745cc9.tar.gz cpython-41457c7fdb04819d04a528b8dfa72c1aa5745cc9.zip |
gh-116381: Remove bad specializations, add fail stats (GH-116464)
* Remove bad specializations, add fail stats
Diffstat (limited to 'Objects/tupleobject.c')
-rw-r--r-- | Objects/tupleobject.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Objects/tupleobject.c b/Objects/tupleobject.c index 5bbc0279c21..d9dc00da368 100644 --- a/Objects/tupleobject.c +++ b/Objects/tupleobject.c @@ -349,8 +349,8 @@ tuplelength(PyTupleObject *a) return Py_SIZE(a); } -int -_PyTuple_Contains(PyTupleObject *a, PyObject *el) +static int +tuplecontains(PyTupleObject *a, PyObject *el) { Py_ssize_t i; int cmp; @@ -758,7 +758,7 @@ static PySequenceMethods tuple_as_sequence = { 0, /* sq_slice */ 0, /* sq_ass_item */ 0, /* sq_ass_slice */ - (objobjproc)_PyTuple_Contains, /* sq_contains */ + (objobjproc)tuplecontains, /* sq_contains */ }; static PyObject* |