running a C program with python script

Thomas Ganss tganss_at_t_dash_online_dot_de-remove-all-after-first-real-dash at yahoo.com
Wed Mar 9 04:41:46 EST 2005


M.N.A.Smadi schrieb:
> hi;
> 
> how can i do the following:
> 1- run a C program from a python script
> 2- pass that C program an argument
> 3- Read the out of the program into a buffer that is local to the script
> 
> thanks
> m.smadi
in addition to the other approaches:
if you want only a few specific lines of c you can inline the code.
google for scipy, weave, inline and python

HTH

thomas



More information about the Python-list mailing list