report at bugs
Aug 20, 2012, 12:00 AM
Post #7 of 7
Andrea Griffini added the comment:
[issue5765] stack overflow evaluating eval("()" * 30000)
[In reply to]
On Mon, Aug 20, 2012 at 12:27 AM, Antoine Pitrou <report [at] bugs> wrote:
> Indeed I don't like the introduction of COMPILER_STACK_FRAME_SCALE.
> Re-using the existing infrastructure would be much easier to maintain.
> The default recursion limit is 1000, which should cover any non-pathological code, IMHO.
I submitted a new version with the scale lowered to 3.
Using a lower value (e.g. 1) however makes "test_extended_args" fail
(the test tries to compile an expression with 2500+ terms).
If it's ok to make that test to throw instead then the whole scaling
could be removed.
Python tracker <report [at] bugs>
Python-bugs-list mailing list