[f2py] Quick and Smart Way for C code in f2py

Lorenzo Isella <[email protected]> Sun, 29 Aug 2010 21:31:49 +0200
Newsgroups gmane.comp.python.f2py.user
Message-ID <[email protected]>
Dear All,
I have recently found out that f2py can be used also to wrap C code.
See for instance

http://www.scipy.org/Cookbook/f2py_and_NumPy

Now, dealing with the example above, i.e. the C function which I paste 
below

/* File foo.c */
void foo(int n, double *x, double *y) {
   int i;
   for (i=0;i<n;i++) {
     y[i] = x[i] + i;
   }
}

is there any way to get a Python module out of it generating 
automatically the corresponding signature file i.e. something along the 
lines of the Fortran example at

http://bit.ly/a5fE20
?
Many thanks

Lorenzo