PyRun_SimpleString, PyRun_File

Discussion in 'Python' started by Søren Johansen, Aug 5, 2003.

  1. 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
    Søren Johansen, Aug 5, 2003
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Stavros Tsolakos

    Re: PyRun_SimpleString, PyRun_File

    Stavros Tsolakos, Aug 6, 2003, in forum: Python
    Replies:
    0
    Views:
    459
    Stavros Tsolakos
    Aug 6, 2003
  2. Link
    Replies:
    3
    Views:
    609
    Syver Enstad
    Sep 23, 2003
  3. Roberto

    PyRun_File

    Roberto, Feb 5, 2004, in forum: Python
    Replies:
    0
    Views:
    2,038
    Roberto
    Feb 5, 2004
  4. iwl
    Replies:
    2
    Views:
    693
    Gabriel Genellina
    Dec 7, 2006
  5. BigHand
    Replies:
    6
    Views:
    839
    David Shapiro
    Jun 10, 2009
Loading...

Share This Page