mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
Issue #23757: Only call the concrete list API for exact lists.
This commit is contained in:
parent
6558190e52
commit
610a51f364
3 changed files with 16 additions and 1 deletions
|
|
@ -1636,7 +1636,7 @@ PySequence_Tuple(PyObject *v)
|
|||
Py_INCREF(v);
|
||||
return v;
|
||||
}
|
||||
if (PyList_Check(v))
|
||||
if (PyList_CheckExact(v))
|
||||
return PyList_AsTuple(v);
|
||||
|
||||
/* Get iterator. */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue