Skip to content

Commit a86129d

Browse files
author
Erlend E. Aasland
committed
bpo-43908: Apply Py_TPFLAGS_IMMUTABLETYPE to array.array
1 parent 103d5e4 commit a86129d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Modules/arraymodule.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2847,7 +2847,8 @@ static PyType_Slot array_slots[] = {
28472847
static PyType_Spec array_spec = {
28482848
.name = "array.array",
28492849
.basicsize = sizeof(arrayobject),
2850-
.flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
2850+
.flags = (Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE |
2851+
Py_TPFLAGS_IMMUTABLETYPE),
28512852
.slots = array_slots,
28522853
};
28532854

0 commit comments

Comments
 (0)