8000 bpo-43908: Make heap types converted during 3.10 alpha immutable by erlend-aasland · Pull Request #26351 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

bpo-43908: Make heap types converted during 3.10 alpha immutable #26351

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 20 commits into from
Jun 17, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extensi 8000 on

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
mmap.mmap is now immutable
  • Loading branch information
Erlend E. Aasland committed May 25, 2021
commit e38cafcd28ac2410909b27588b9c94f7ced872c3
3 changes: 2 additions & 1 deletion Modules/mmapmodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -1114,7 +1114,8 @@ static PyType_Slot mmap_object_slots[] = {
static PyType_Spec mmap_object_spec = {
.name = "mmap.mmap",
.basicsize = sizeof(mmap_object),
.flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
.flags = (Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE |
Py_TPFLAGS_IMMUTABLETYPE),
.slots = mmap_object_slots,
};

Expand Down
0