I am trying to make a struct in Cython which has a list as a member. This is not allowed, since when I try to compile:
cdef struct CloseValues:
int size
list values
list ks
I get the error C struct/union member cannot be a Python object
.
Is there a C/Cpp alternative for this, which is also efficient and can be defined without specifying its size?