summaryrefslogtreecommitdiffstats
path: root/Objects/listobject.c
diff options
context:
space:
mode:
authorMark Shannon <mark@hotpy.org>2024-11-08 16:44:44 (GMT)
committerGitHub <noreply@github.com>2024-11-08 16:44:44 (GMT)
commitfa4092259763ffad45a5bb9ef55f515dc6a69ad2 (patch)
tree2a37522fd4bef93f3fbce649bc3396c58ca4f130 /Objects/listobject.c
parentfd5580cd151e07c690e9d7594513be5fa3102a2e (diff)
downloadcpython-fa4092259763ffad45a5bb9ef55f515dc6a69ad2.zip
cpython-fa4092259763ffad45a5bb9ef55f515dc6a69ad2.tar.gz
cpython-fa4092259763ffad45a5bb9ef55f515dc6a69ad2.tar.bz2
GH-126547: Pre-assign version numbers for a few common classes (GH-126551)
Diffstat (limited to 'Objects/listobject.c')
-rw-r--r--Objects/listobject.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Objects/listobject.c b/Objects/listobject.c
index 930aefd..bb0040c 100644
--- a/Objects/listobject.c
+++ b/Objects/listobject.c
@@ -3774,6 +3774,7 @@ PyTypeObject PyList_Type = {
PyType_GenericNew, /* tp_new */
PyObject_GC_Del, /* tp_free */
.tp_vectorcall = list_vectorcall,
+ .tp_version_tag = _Py_TYPE_VERSION_LIST,
};
/*********************** List Iterator **************************/