Closed cmbruns closed 3 years ago
This might be a more general and canonical array construction pattern:
# Use the default constructor to initialize each array member
N = 4
initialized_array = (MyStructure * N)(*([MyStructure()] * N))
That's a lot of punctuation to unpack, but this would be an implementation detail inside the python function definitions.
.make_array() is called on too many inappropriate objects.