s_push parser stack overflow
alister ware
alister.ware at ntlworld.com
Tue Mar 20 10:39:22 EDT 2012
On Tue, 20 Mar 2012 04:30:51 +0000, MRAB wrote:
> 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;
But why such an obscure print statement anyway?
is it purely to show the issue or is there some actual reason behind it?
--
divorce, n:
A change of wife.
More information about the Python-list
mailing list