IronLanguages / main

Work for this repo has moved to https://github.com/IronLanguages/ironpython2
1.16k stars 348 forks source link

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

Open ironpythonbot opened 9 years ago

ironpythonbot commented 9 years ago

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 commented 9 years ago

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

Ditto for '\r'.