summaryrefslogtreecommitdiffstats
path: root/Objects/abstract.c
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2015-05-17 21:45:58 (GMT)
committerRaymond Hettinger <python@rcn.com>2015-05-17 21:45:58 (GMT)
commit610a51f364f6cb5ffb5167d9bf4dcecc1815107c (patch)
tree1544fadc8ed997411f3346015921e1a48a467e2f /Objects/abstract.c
parent6558190e52748428b2db1420bf029b0745e2743a (diff)
downloadcpython-610a51f364f6cb5ffb5167d9bf4dcecc1815107c.zip
cpython-610a51f364f6cb5ffb5167d9bf4dcecc1815107c.tar.gz
cpython-610a51f364f6cb5ffb5167d9bf4dcecc1815107c.tar.bz2
Issue #23757: Only call the concrete list API for exact lists.
Diffstat (limited to 'Objects/abstract.c')
-rw-r--r--Objects/abstract.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/abstract.c b/Objects/abstract.c
index 7e3121a..cabbaf5 100644
--- a/Objects/abstract.c
+++ b/Objects/abstract.c
@@ -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. */