Message319091
A few years ago, there was a particular case in which compile failed without a trailing newline. We fixed it so that it would work anyway.
Unless we are willing for a conforming Python interpreter to fail
>>> exec('print("hello")')
hello
The Reference Manual should be clear that EOF and EOS (end-of-string) is treated as NEWLINE. |
|
| Date |
User |
Action |
Args |
| 2018-06-08 18:39:34 | terry.reedy | set | recipients:
+ terry.reedy, gvanrossum, docs@python, serhiy.storchaka, ammar2, Isaac Elliott |
| 2018-06-08 18:39:33 | terry.reedy | set | messageid: <[email protected]> |
| 2018-06-08 18:39:33 | terry.reedy | link | issue33766 messages |
| 2018-06-08 18:39:33 | terry.reedy | create | |
|