Embedded Python

John Dean john at totalrekall.co.uk
Fri Mar 10 05:14:32 EST 2006


Hi
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
John



More information about the Python-list mailing list