GH-115776: Allow any fixed sized object to have inline values (GH-123192)
This commit is contained in:
@@ -8340,7 +8340,7 @@ type_ready_managed_dict(PyTypeObject *type)
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
if (type->tp_itemsize == 0 && type->tp_basicsize == sizeof(PyObject)) {
|
||||
if (type->tp_itemsize == 0) {
|
||||
type->tp_flags |= Py_TPFLAGS_INLINE_VALUES;
|
||||
}
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user