Terry J. Reedy <tjre...@udel.edu> added the comment:

Ditto as to the limit for ast.parse.

>>> import ast; ast.parse('+chr(33)'*32000)
============================ RESTART: Shell =========================
>>> import ast; ast.parse('+chr(33)'*31000)
<_ast.Module object at 0x000001E7920F34A8>

I see the same in 3.6 and 3.5, so this is not a 3.7 regression.  Rather, was 
the ast.parse behavior somehow copied into compile for 3.7, perhaps by 
'simplifying' code?


Python tracker <rep...@bugs.python.org>
Python-bugs-list mailing list

Reply via email to