[issue24226] [3.5 Regression] unable to byte-compile the attached IN.py

Matthias Klose report at bugs.python.org
Mon May 18 14:58:25 CEST 2015


Matthias Klose added the comment:

looks like a parser issue:

$ for i in $(seq 200); do echo "def f$i(x): return (x)" >> foo.py; done
$ python3.5 -m py_compile foo.py 
Sorry: IndentationError: too many levels of indentation (foo.py, line 100)

$ for i in $(seq 200); do echo "def f$i(x):">>bar.py; echo "    return (x)" >> bar.py; done
$ python3.5 -m py_compile bar.py

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue24226>
_______________________________________


More information about the Python-bugs-list mailing list