Skip to content

Commit b65c01c

Browse files
[3.15] gh-126547: pre-allocate version number for unicode type (GH-157781) (GH-157812)
(cherry picked from commit c2e740a) Co-authored-by: Inada Naoki <songofacandy@gmail.com>
1 parent 2337dd6 commit b65c01c

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎Objects/unicodeobject.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14071,6 +14071,7 @@ PyTypeObject PyUnicode_Type = {
1407114071
0, /* tp_alloc */
1407214072
unicode_new, /* tp_new */
1407314073
PyObject_Free, /* tp_free */
14074+
.tp_version_tag = _Py_TYPE_VERSION_STR,
1407414075
.tp_vectorcall = unicode_vectorcall,
1407514076
._tp_iteritem = unicode_iteritem,
1407614077
};

0 commit comments

Comments
 (0)