[issue4262] import and compile() do not treat trailing whitespace the same

2010-04-29 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- status: pending -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[issue4262] import and compile() do not treat trailing whitespace the same

2008-11-07 Thread Terry J. Reedy
Terry J. Reedy <[EMAIL PROTECTED]> 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.

[issue4262] import and compile() do not treat trailing whitespace the same

2008-11-05 Thread Brett Cannon
Changes by Brett Cannon <[EMAIL PROTECTED]>: -- nosy: +brett.cannon ___ Python tracker <[EMAIL PROTECTED]> ___ ___ Python-bugs-list mail

[issue4262] import and compile() do not treat trailing whitespace the same

2008-11-05 Thread Mark Seaborn
New submission from Mark Seaborn <[EMAIL PROTECTED]>: compile() raises a SyntaxError if the source code it is given contains trailing spaces or a trailing carriage return character, but this does happen if the same source code is imported or executed. import subprocess data = "if True:\n pass\