This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Anthony Sottile
Recipients Anthony Sottile
Date 2020-04-24.18:18:03
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1587752284.4.0.62112080929.issue40378@roundup.psfhosted.org>
In-reply-to
Content
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
History
Date User Action Args
2020-04-24 18:18:04Anthony Sottilesetrecipients: + Anthony Sottile
2020-04-24 18:18:04Anthony Sottilesetmessageid: <1587752284.4.0.62112080929.issue40378@roundup.psfhosted.org>
2020-04-24 18:18:04Anthony Sottilelinkissue40378 messages
2020-04-24 18:18:03Anthony Sottilecreate