New submission from Anthony Sottile <asott...@umich.edu>:
compare the following: ``` if False: 'foo'(1) ``` $ python3.9 Python 3.9.0a5 (default, Mar 23 2020, 23:11:30) [GCC 7.5.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import ast >>> ast.parse(b"if False: 'foo'(1)") <ast.Module object at 0x7ff87a03cca0> >>> if False: 'foo'(1) ... <stdin>:1: SyntaxWarning: 'str' object is not callable; perhaps you missed a comma? even with `PYTHONWARNINGS=error` no warning / error is raised ---------- messages: 367207 nosy: Anthony Sottile priority: normal severity: normal status: open title: ast.parse fails to trigger SyntaxWarning that normal execution does type: behavior versions: Python 3.8, Python 3.9 _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue40378> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com