Terry J. Reedy <tjre...@udel.edu> added the comment:
One can use sys.setrecursionlimit to increase allowed recursion depth. But... When I ran code from 3.10.0a3 IDLE editor, something hung. Without touching recursion limit, when I split statement apart into ex = compile("""<300 lines>""", '', 'eval') print(eval(ex)) I got 106994.5 in under a second. With exec, ditto except that None is printed. Same last result with 3.9.1. ---------- nosy: +terry.reedy _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue42649> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com