GH-126547: Pre-assign version numbers for a few common classes (GH-126551)

This commit is contained in:
Mark Shannon 2024-11-08 16:44:44 +00:00 committed by GitHub
parent fd5580cd15
commit fa40922597
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 29 additions and 2 deletions

View file

@ -909,6 +909,7 @@ PyTypeObject PyTuple_Type = {
tuple_new, /* tp_new */
PyObject_GC_Del, /* tp_free */
.tp_vectorcall = tuple_vectorcall,
.tp_version_tag = _Py_TYPE_VERSION_TUPLE,
};
/* The following function breaks the notion that tuples are immutable: