Python/C

Travis Oliphant olipt at mayo.edu
Fri Oct 29 20:31:17 EDT 1999


> Hi:
> 
> 	I'm starting a project where I'll be extending Python with C.  I have a
> very beginner's question ...
> 
> 	If I have an array I created in the Python interpreter, how can I
> access that array in my imported C module?

If you are going to be passing arrays back and forth between Python and C,
I would suggest using Numerical Python which is a must-have extension
module.

The C API for NumPy is quite easy to use and there is good documentation
for it in the Numerical Python manual.

Check out the scicomp topic guide at www.python.org for links.

-Travis






More information about the Python-list mailing list