Too many elif
s cause MemoryError
or RecursionError
#105771
Labels
type-bug
An unexpected behavior, bug, or error
elif
s cause MemoryError
or RecursionError
#105771
Bug report
Save the above code as
main.py
:... and run
python main.py | python
causes:(
BrokenPipeError
is not relevant here)Or, run the following code:
... causes the following error:
In Python 3.8.10, the error message is changed as follows:
I think this is a bug, and the bug is due to parsing the Python code to AST causing
RecursionError
.Your environment
Python 3.11.3
6.3.5-arch1-1
The text was updated successfully, but these errors were encountered: