[Cython] object to struct conversion

Robert Bradshaw robertwb at math.washington.edu
Wed Aug 3 19:36:14 CEST 2011

On Wed, Aug 3, 2011 at 9:20 AM, Stefan Behnel <stefan_ml at behnel.de> wrote:
> mark florisson, 03.08.2011 16:28:
>> Is there any specific reason objects cannot coerce to structs (from
>> e.g. dicts?). It would be convenient for memoryviews, then you could
>> assign dicts (or any mapping) to items in the memoryview from Python
>> space. You could also have structs as argument to def functions etc.
>> Any objection to this addition? The implementation is pretty
>> straightforward.
> Robert implemented these things a while ago. I think I recall that there
> were unsupported use cases, but I'm not sure what exactly is missing here.

It just simply wasn't implemented yet.

- Robert

More information about the cython-devel mailing list