Skip to content

Commit 443908f

Browse files
committed
make _tkinter.tktimertoken immutable
1 parent c7213ac commit 443908f

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

Modules/_tkinter.c

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3270,11 +3270,14 @@ static PyType_Slot Tktt_Type_slots[] = {
32703270
};
32713271

32723272
static PyType_Spec Tktt_Type_spec = {
3273-
"_tkinter.tktimertoken",
3274-
sizeof(TkttObject),
3275-
0,
3276-
Py_TPFLAGS_DEFAULT | Py_TPFLAGS_DISALLOW_INSTANTIATION,
3277-
Tktt_Type_slots,
3273+
.name = "_tkinter.tktimertoken",
3274+
.basicsize = sizeof(TkttObject),
3275+
.flags = (
3276+
Py_TPFLAGS_DEFAULT
3277+
| Py_TPFLAGS_DISALLOW_INSTANTIATION
3278+
| Py_TPFLAGS_IMMUTABLETYPE
3279+
),
3280+
.slots = Tktt_Type_slots,
32783281
};
32793282

32803283

0 commit comments

Comments
 (0)