Embedding python in C - newbie

Philippe C. Martin philippe at philippecmartin.com
Tue Jun 28 18:37:45 EDT 2005


Sorry, it is still not clear when I reread it:

1) I have a bunch of Python working modules
2) I need to compile "something" so external C applications can access 1)

Thanks,

Philippe



Philippe C. Martin wrote:

> Just to make sure i'm clear as I've been told about swig and pyrex: I
> don't want to eventually have a python script call C modules, but rather a
> main.c make calls to python functionnalities.
> 
> I did add newbie in the title :-)
> 
> Regards,
> 
> Philippe
> 
> 
> 
> Philippe C. Martin wrote:
> 
>> Hi,
>> 
>> Is there a program out there that would generate the C code to
>> instantiate objects and call them:
>> 
>> ex: miracle.exe -i mymodule.py -o module_internface.c ?
>> 
>> I seem to recall a _yes_ to that but I got a memory overflow :-)
>> 
>> Thanks,
>> 
>> Philippe




More information about the Python-list mailing list