Need help with C extensions

Simon Burton simonb at webone.com.au
Sun Feb 9 20:01:38 EST 2003


On Sun, 09 Feb 2003 13:23:45 +0000, Carl Bevil wrote:

> Hello all.  I am attempting to wrap a C library so that I can use it in 
> Python.  I've used SWIG on the header for this file, and am able to import and 
> run functions from the library.
> 
> The problem is that the library makes use of pointers as arguments and as 
> return values.  For example, a C function:
> 
> void GetValues(float* val1, float* val2)
> 

Yes. I use the "pointer.i" SWIG library to "dereference" pointers (aka
array lookups) from python. Unfortunately, i think it may be deprecated...

Simon Burton.






More information about the Python-list mailing list