main icon indicating copy to clipboard operation
main copied to clipboard

'\r\n' is a valid line separator WRT to exec under 2.7

Open ironpythonbot opened this issue 10 years ago • 1 comments

D:\rft\vsl\dlr\Languages\IronPython\Tests>27 -c "exec 'x=2\r\ny=4'"

D:\rft\vsl\dlr\Languages\IronPython\Tests>26 -c "exec 'x=2\r\ny=4'"
Traceback (most recent call last):
File "", line 1, in
File "", line 1

x=2
   ^

SyntaxError: invalid syntax

D:\rft\vsl\dlr\Languages\IronPython\Tests>ipyd -c "exec 'x=2\r\ny=4'"
File "", line 1

x=2





   ^

SyntaxError: unexpected token '\r'

Work Item Details

Original CodePlex Issue: Issue 27991 Status: Active Reason Closed: Unassigned Assigned to: Unassigned Reported on: Jul 6, 2010 at 11:46 PM Reported by: dfugate Updated on: Feb 22, 2013 at 2:10 AM Updated by: jdhardy Test: test_exec.py (test_eolns)

ironpythonbot avatar Dec 09 '14 17:12 ironpythonbot

On 2010-07-07 06:48:15 UTC, dfugate commented:

Ditto for '\r'.

ironpythonbot avatar Dec 09 '14 17:12 ironpythonbot