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> <https://bugs.python.org/issue32758> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com