[Pyrex] How to use C functions in many Pyrex files?

Greg Ewing greg.ewing at canterbury.ac.nz
Thu Apr 6 02:49:45 CEST 2006


Eric Huss wrote:

> Greg has alluded that this might be supported in the future, but I don't
> see how it would be possible.  

 > One method that I have used ... is to create a void * wrapper around 
your C
> function using PyCObject_FromVoidPtr.

Doing that behind the scenes is more or less what I had
in mind. I'm already doing something similar to get the
table of C methods for a cimported extension type, so
it wouldn't be much of a change.

--
Greg




More information about the Pyrex mailing list