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

Michael Orlitzky report at bugs.python.org
Tue Dec 15 12:55:57 EST 2020


New submission from Michael Orlitzky <michael at orlitzky.com>:

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 compilation

Python-2.7, on the other hand, is able to parse & compile much larger expressions -- this example was whittled down until it was roughly minimal.

----------
components: Interpreter Core
files: DPT_defn
messages: 383084
nosy: mjo
priority: normal
severity: normal
status: open
title: RecursionError when parsing unwieldy expression (regression from 2.7 -> 3.x)
versions: Python 3.9
Added file: https://bugs.python.org/file49683/DPT_defn

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue42649>
_______________________________________


More information about the New-bugs-announce mailing list