[Pyrex] return pointer to a struct

horace horace3d at gmail.com
Thu May 28 15:00:07 CEST 2009


hi,

i have used ctypes so far but would like to try pyrex/cython for better
performance...

i have a c library with a function which returns a pointer to a struct. this
struct should be exposed to python. it should be possible to modify the
variables of this struct from python and the c library should see those
changes.

in ctypes this somehow works automagically but in pyrex/cython i can't get
this to work. is there a way to achieve this? can anyone point me into the
right direction?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.copyleft.no/pipermail/pyrex/attachments/20090528/cc2650c5/attachment.html 


More information about the Pyrex mailing list