Message367207
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 |
|
Date |
User |
Action |
Args |
2020-04-24 18:18:04 | Anthony Sottile | set | recipients:
+ Anthony Sottile |
2020-04-24 18:18:04 | Anthony Sottile | set | messageid: <1587752284.4.0.62112080929.issue40378@roundup.psfhosted.org> |
2020-04-24 18:18:04 | Anthony Sottile | link | issue40378 messages |
2020-04-24 18:18:03 | Anthony Sottile | create | |
|