Skip to content
Prev Previous commit
Next Next commit
make zlib.Compress immutable
  • Loading branch information
picnixz committed Sep 6, 2025
commit 2ceb790da6d6c32482b8ed67ea6b3231bfc35715
1 change: 1 addition & 0 deletions Modules/zlibmodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -2043,6 +2043,7 @@ static PyType_Spec Comptype_spec = {
.flags = (
Py_TPFLAGS_DEFAULT
| Py_TPFLAGS_DISALLOW_INSTANTIATION
| Py_TPFLAGS_IMMUTABLETYPE
| Py_TPFLAGS_HAVE_GC
),
.slots= Comptype_slots,
Expand Down