Using C to execute Python

Friedrich Dominicus Friedrich.Dominicus at inka.de
Wed Jun 23 07:23:40 EDT 1999


Thomas Røberg wrote:
> 
> I have a C program and I want to call certain Python methods / functions
> passing quite a few parameters.
> How can I do this, in general fashion?
> I would have to include python.h, I reckon - where can I find this, I've
> been searching all over for it (is it just me???)
> I'm no expert, far from, in Python...

Have you read the Python/C Api? you can found it here:
http://www.python.org/doc/current/api/api.html


if you want to extend python using C have a look at:
http://www.python.org/doc/current/ext/ext.html

if you don't know where to start www.python.org is quite first choice.

Regards
Friedrich




More information about the Python-list mailing list