mirror of
https://github.com/python/cpython.git
synced 2025-10-09 16:34:44 +00:00
gh-116381: Remove bad specializations, add fail stats (GH-116464)
* Remove bad specializations, add fail stats
This commit is contained in:
parent
4298d69d4b
commit
41457c7fdb
16 changed files with 125 additions and 320 deletions
|
@ -524,8 +524,8 @@ list_length(PyObject *a)
|
|||
return PyList_GET_SIZE(a);
|
||||
}
|
||||
|
||||
int
|
||||
_PyList_Contains(PyObject *aa, PyObject *el)
|
||||
static int
|
||||
list_contains(PyObject *aa, PyObject *el)
|
||||
{
|
||||
|
||||
for (Py_ssize_t i = 0; ; i++) {
|
||||
|
@ -3147,7 +3147,7 @@ static PySequenceMethods list_as_sequence = {
|
|||
0, /* sq_slice */
|
||||
list_ass_item, /* sq_ass_item */
|
||||
0, /* sq_ass_slice */
|
||||
_PyList_Contains, /* sq_contains */
|
||||
list_contains, /* sq_contains */
|
||||
list_inplace_concat, /* sq_inplace_concat */
|
||||
list_inplace_repeat, /* sq_inplace_repeat */
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue