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: <1528483173.94.0.592728768989.issue33766@psf.upfronthosting.co.za> |
2018-06-08 18:39:33 | terry.reedy | link | issue33766 messages |
2018-06-08 18:39:33 | terry.reedy | create | |
|