Embedded Python

John Dean john at totalrekall.co.uk
Fri Mar 10 11:14:32 CET 2006

Is it possible to execute a whole script using the C API function
PyRun_String? At moment I load the script into a buffer. Then I get each
line of the script and pass it PyRun_String. This seems very inefficient. It
would be more efficient if I could pass the complete string buffer to
PyRun_String and execute the script as a whole

Best Regards

More information about the Python-list mailing list