main icon indicating copy to clipboard operation
main copied to clipboard

compile no longer requires that multi-line "exec" statements end in a newline

Open ironpythonbot opened this issue 10 years ago • 0 comments

D:\rft\vsl\dlr\Languages\IronPython\Tests>26 -c "compile('if 1:\n print 1', '', 'exec', 0x200, 1)"
Traceback (most recent call last):
File "", line 1, in
File "", line 2

print 1
     ^

SyntaxError: invalid syntax

D:\rft\vsl\dlr\Languages\IronPython\Tests>ipyd -c "compile('if 1:\n print 1', '', 'exec', 0x200, 1)"
File "", line 2

 print 1
        ^

SyntaxError: unexpected end of file

D:\rft\vsl\dlr\Languages\IronPython\Tests>

Work Item Details

Original CodePlex Issue: Issue 28221 Status: Active Reason Closed: Unassigned Assigned to: Unassigned Reported on: Jul 21, 2010 at 11:14 PM Reported by: dfugate Updated on: Feb 22, 2013 at 2:10 AM Updated by: jdhardy Test: test_stdmodules.py (test_cp12907)

ironpythonbot avatar Dec 09 '14 17:12 ironpythonbot