Author terry.reedy
Recipients Isaac Elliott, ammar2, docs@python, gvanrossum, serhiy.storchaka, terry.reedy
Date 2018-06-08.18:39:33
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1528483173.94.0.592728768989.issue33766@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2018-06-08 18:39:34terry.reedysetrecipients: + terry.reedy, gvanrossum, docs@python, serhiy.storchaka, ammar2, Isaac Elliott
2018-06-08 18:39:33terry.reedysetmessageid: <1528483173.94.0.592728768989.issue33766@psf.upfronthosting.co.za>
2018-06-08 18:39:33terry.reedylinkissue33766 messages
2018-06-08 18:39:33terry.reedycreate