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

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