[issue4262] import and compile() do not treat trailing whitespace the same
Terry J. Reedy
report at bugs.python.org
Fri Nov 7 22:47:57 CET 2008
Terry J. Reedy <tjreedy at udel.edu> added the comment:
Both differences are covered in the 2.x docs:
"When compiling multi-line statements, two caveats apply: line endings
must be represented by a single newline character ('\n'), and the input
must be terminated by at least one newline character.
The \r difference is not really a difference because \r is replaced by
\n before import starts compiling. I suspect that EOF effectively gets
converted to \n also. The doc issue is that 'must be terminated...' is
not always true.
This caveat is missing in 3.0, even though the limitation is the same.
see #4118.
I thought this was discussed in a c.l.p thread.
----------
nosy: +tjreedy
resolution: -> invalid
status: open -> pending
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4262>
_______________________________________
More information about the Python-bugs-list
mailing list