[docs] [issue33766] Grammar Incongruence

Terry J. Reedy report at bugs.python.org
Fri Jun 8 14:39:34 EDT 2018


Terry J. Reedy <tjreedy at udel.edu> added the comment:

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.

----------
nosy: +terry.reedy

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue33766>
_______________________________________


More information about the docs mailing list