[Numpy-discussion] f2py and C functions/subroutines/structs
Gael Varoquaux
gael.varoquaux at normalesup.org
Thu May 24 09:52:26 EDT 2007
On Thu, May 24, 2007 at 03:50:40PM +0200, Gael Varoquaux wrote:
> On Thu, May 24, 2007 at 03:40:18PM +0200, lorenzo bolla wrote:
> > I hope this is the right mailing list to post my question to.
> > I'm trying to make some easy C code working with Python by using f2py.
> I can't help too much on that as I gave up using f2Py to wrap C a while
> ago, but I think you are much better off using xtypes to call C
> functions. It is dead-easy.
Oops, forgot the manual ! Have a look at
http://www.scipy.org/Cookbook/Ctypes to see how to easily call C function
with numpy.
Gaël
More information about the NumPy-Discussion
mailing list