A left-associative 52+ term sum nests one BinOp level per term and hit _MAX_DEPTH=50. The 256-char input cap already bounds _arith recursion and ast.parse caps parenthesis nesting, so the depth budget guarded nothing. Refs #145541 Co-authored-by: BearHuddleston <196404565+BearHuddleston@users.noreply.github.com>