s_push parser stack overflow

MRAB python at mrabarnett.plus.com
Tue Mar 20 00:30:51 EDT 2012


On 20/03/2012 03:19, Артём Назаров wrote:
> Hi.
> Sorry of my english :-)
>
> code:
> print (((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((0)))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))"
>
> message from python is: s_push parser stack overflow
>
> Can i configure phyton to solve this problem without change MAXSTACK in " parser.c" and re-build the python?

A quick look at parser.h tells me that it's a hard-coded limit:

typedef struct {
	stackentry	*s_top;		/* Top entry */
	stackentry	 s_base[MAXSTACK];/* Array of stack entries */
					/* NB The stack grows down */
} stack;



More information about the Python-list mailing list