https://github.com/python/cpython/commit/b65c01c2014dc3a483afd9fddbc53a4ed14a5038 commit: b65c01c2014dc3a483afd9fddbc53a4ed14a5038 branch: 3.15 author: Miss Islington (bot) <[email protected]> committer: encukou <[email protected]> date: 2026-10-15T15:02:19+02:00 summary:
[3.15] gh-126547: pre-allocate version number for unicode type (GH-157781) (GH-157812) (cherry picked from commit c2e740ae5f7328eb55d6dab0b4fd6f7fc15cca23) Co-authored-by: Inada Naoki <[email protected]> files: M Objects/unicodeobject.c diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index b0b5e01a0f4e9aa..f308a1f74740076 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c @@ -14071,6 +14071,7 @@ PyTypeObject PyUnicode_Type = { 0, /* tp_alloc */ unicode_new, /* tp_new */ PyObject_Free, /* tp_free */ + .tp_version_tag = _Py_TYPE_VERSION_STR, .tp_vectorcall = unicode_vectorcall, ._tp_iteritem = unicode_iteritem, }; _______________________________________________ Python-checkins mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3//lists/python-checkins.python.org Member address: [email protected]
