[issue5765] stack overflow evaluating eval("()" * 30000)

Antoine Pitrou report at bugs.python.org
Sun Nov 4 11:51:37 CET 2012


Antoine Pitrou added the comment:

> Autogenerated code could easily hit the 1000 term limit - if anything,
> I'd be inclined to set it *higher* than 4 rather than lower, as
> breaking previously working code in a maintenance release is a bad
> thing, regardless of our opinion of the sanity of that code.

We can simply apply the 1000 limit in Python 3.4 and mark the bug as
won't fix in other versions.

I don't think adding a scaling factor just to cope with hypothetical
silly code is a good thing in the long term.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5765>
_______________________________________


More information about the Python-bugs-list mailing list