Embedded Python

Fredrik Lundh fredrik at pythonware.com
Fri Mar 10 05:27:18 EST 2006


John Dean wrote:

> 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

so why don't you try it? ;-)

</F>






More information about the Python-list mailing list