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 extension

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
winapi__overlapped.Overlapped is now immutable
  • Loading branch information
Erlend E. Aasland committed May 25, 2021
commit 8a9290d7d54c10db7be46d4e2ac2f853f9ff3531
3 changes: 2 additions & 1 deletion Modules/_winapi.c
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,8 @@ static PyType_Slot winapi_overlapped_type_slots[] = {
static PyType_Spec winapi_overlapped_type_spec = {
.name = "_winapi.Overlapped",
.basicsize = sizeof(OverlappedObject),
.flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_DISALLOW_INSTANTIATION,
.flags = (Py_TPFLAGS_DEFAULT | Py_TPFLAGS_DISALLOW_INSTANTIATION |
Py_TPFLAGS_IMMUTABLETYPE),
.slots = winapi_overlapped_type_slots,
};

Expand Down
0