[issue42649] RecursionError when parsing unwieldy expression (regression from 2.7 -> 3.x)

2021-08-13 Thread Jack DeVries
Jack DeVries added the comment: edit; typo: **This document is the **closest** I can find -- ___ Python tracker ___ ___

[issue42649] RecursionError when parsing unwieldy expression (regression from 2.7 -> 3.x)

2021-08-13 Thread Jack DeVries
Jack DeVries added the comment: I spent some time experimenting with making the expression bigger and the recursion limit lower in python2. It seems like in python2, the depth that the compiler will recurse is unrelated to sys.recursionlimit. Then, I lowered resource limits on stack and

[issue42649] RecursionError when parsing unwieldy expression (regression from 2.7 -> 3.x)

2020-12-18 Thread Terry J. Reedy
Terry J. Reedy 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')

[issue42649] RecursionError when parsing unwieldy expression (regression from 2.7 -> 3.x)

2020-12-15 Thread Michael Orlitzky
Change by Michael Orlitzky : -- type: -> compile error ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue42649] RecursionError when parsing unwieldy expression (regression from 2.7 -> 3.x)

2020-12-15 Thread Michael Orlitzky
New submission from Michael Orlitzky : The attached file contains a huge, ugly expression that can be parsed in python-2.7 but not python-3.x (I've tested 3.7, 3.8, and 3.9). With the 3.x versions, I get $ python3 DPT_defn RecursionError: maximum recursion depth exceeded during