parser stack size limit

Skip Montanaro skip at pobox.com
Mon Apr 14 20:15:35 CEST 2003


    Francisco> """
    Francisco> s_push: parser stack overflow
    Francisco> MemoryError
    Francisco> """

    ...

    Francisco> Any ideas on how to avoid this? Could it be as simple as a
    Francisco> file to modify and then recompile python?

Yes, I believe you can boost the value of MAXSTACK in Parser/parser.h.  This
question came up recently.  I believe the long-term solution is to
dynamically allocate the parser's stack.

Skip





More information about the Python-list mailing list