PyRun_SimpleString, PyRun_File

Søren Johansen soerenjohansen171 at hotmail.com
Tue Aug 5 08:24:53 EDT 2003


Hi,

having had a number of problems with PyRun_File in my application embedding
Python, I decided to load scripts into memory myself and execute them with
PyRun_(Simple)String.
This works fine and dandy except for when scripts reach a certain size.
Around the 28000'th byte, it seems to break up the script, resulting in
random errors caused by whatever is on that line.

Is there some known limitation to PyRun_String buffersize that is not
present in PyRun_File - with which it used to work - and a way to overcome
it?

Thank you,
Søren






More information about the Python-list mailing list