main icon indicating copy to clipboard operation
main copied to clipboard

Line numbers are confused by \ at EOL in multiline strings

Open ironpythonbot opened this issue 10 years ago • 0 comments

In a file that includes a multiline string with one or more lines ending in '', stack traces and other uses of line numbers end up miscounting. For example, in the attached script under ipy.exe 2.7.1, the resulting error output is:

Traceback (most recent call last):
File "LineNumbers.py", line 5, in
Exception

If I run it under CPython 2.7.2, I get:

Traceback (most recent call last):
File "LineNumbers.py", line 6, in

raise Exception

Exception

Note that IronPython thinks the exception occurred on Line 5, whereas CPython thinks it occurred on Line 6.

Work Item Details

Original CodePlex Issue: Issue 31856 Status: Active Reason Closed: Unassigned Assigned to: Unassigned Reported on: Nov 30, 2011 at 2:13 AM Reported by: sblom Updated on: Feb 22, 2013 at 2:09 AM Updated by: jdhardy

Plaintext Attachments

CodePlex Issue #31856 Plain Text Attachments

ironpythonbot avatar Dec 09 '14 17:12 ironpythonbot