Re: [Cython] Automatic conversion with fixed-size C arrays

2014-07-16 Thread Robert Bradshaw
On Wed, Jul 16, 2014 at 10:01 AM, Kurt Smith wrote: > Hi devs, > > Being able to convert between simple C structs and Python dictionaries is > great, but it doesn't work if there is a fixed-size array field in the > struct. It seems like the following struct should be convertible safely: > > cdef

[Cython] Automatic conversion with fixed-size C arrays

2014-07-16 Thread Kurt Smith
Hi devs, Being able to convert between simple C structs and Python dictionaries is great, but it doesn't work if there is a fixed-size array field in the struct. It seems like the following struct should be convertible safely: cdef struct state_t: int i, j, k float x[3] float v[3] A