Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Next Next commit
make _tkinter.Tcl_Obj immutable
  • Loading branch information
picnixz committed Sep 6, 2025
commit 53c9fe80cceeb997767c2eab2f5f11eda6f502ee
13 changes: 8 additions & 5 deletions Modules/_tkinter.c
Original file line number Diff line number Diff line change
Expand Up @@ -906,11 +906,14 @@ static PyType_Slot PyTclObject_Type_slots[] = {
};

static PyType_Spec PyTclObject_Type_spec = {
"_tkinter.Tcl_Obj",
sizeof(PyTclObject),
0,
Py_TPFLAGS_DEFAULT | Py_TPFLAGS_DISALLOW_INSTANTIATION,
PyTclObject_Type_slots,
.name = "_tkinter.Tcl_Obj",
.basicsize = sizeof(PyTclObject),
.flags = (
Py_TPFLAGS_DEFAULT
| Py_TPFLAGS_DISALLOW_INSTANTIATION
| Py_TPFLAGS_IMMUTABLETYPE
),
.slots = PyTclObject_Type_slots,
};


Expand Down