return pointer to a struct

horace <[email protected]> Thu, 28 May 2009 15:00:07 +0200
Newsgroups gmane.comp.python.pyrex
Message-ID <[email protected]>
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?

_______________________________________________
Pyrex mailing list
[email protected]
http://lists.copyleft.no/mailman/listinfo/pyrex