[issue5765] stack overflow evaluating eval("()" * 30000)
Mark Shannon
report at bugs.python.org
Sun Nov 4 15:33:58 CET 2012
Mark Shannon added the comment:
I don't think there is any need for a scaling factor.
Expressions in auto-generated trees will tend to be trees of binary operator rather lists of purely unary operators. A tree of a billion items only has a depth of ~30.
There is no way an expression tree >1000 deep could possibly have any sane behaviour.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5765>
_______________________________________
More information about the Python-bugs-list
mailing list