Can Python execute a compiled C program

Sean 'Shaleh' Perry shaleh at valinux.com
Tue Mar 20 14:23:22 EST 2001


On 20-Mar-2001 Carl Moser wrote:
> Can Python execute a compiled C-program?
> 

import os
os.system('ls') # run "ls"
fp = os.popen("ls") # run ls and make the output look like a file I can read

and there are other ways to, most of the C exec functionality is in python.




More information about the Python-list mailing list