Message318617
echo 'print("a");print("b")' > test.py
This program is grammatically incorrect according to the specification (https://docs.python.org/3.8/reference/grammar.html). But Python 3 runs it without issue.
It's this production here
simple_stmt: small_stmt (';' small_stmt)* [';'] NEWLINE
which says 'simple_stmt's must be terminated by a newline. However, the program I wrote doesn't contain any newlines.
I think the grammar spec is missing some information, but I'm not quite sure what. Does anyone have an idea? |
|
Date |
User |
Action |
Args |
2018-06-04 04:05:20 | Isaac Elliott | set | recipients:
+ Isaac Elliott |
2018-06-04 04:05:20 | Isaac Elliott | set | messageid: <1528085120.11.0.592728768989.issue33766@psf.upfronthosting.co.za> |
2018-06-04 04:05:20 | Isaac Elliott | link | issue33766 messages |
2018-06-04 04:05:19 | Isaac Elliott | create | |
|