[IronPython] Wrong line numbers in traceback when ecoding is specified

Lukas Cenovsky cenovsky at bakalari.cz
Fri Apr 30 09:37:10 CEST 2010


Hi all,
there is a bug in IronPython 2.6.1 (and 2.6 too) that line numbers in 
tracebacks are wrong:

=== file t.py ===
# encoding: utf-8
print 1/0


C:\IronPython-2.6.1>ipy.exe t.py
Traceback (most recent call last):
  File "t.py", line 1, in <module>
ZeroDivisionError: Attempted to divide by zero.

The exception is actually on line 2.

I have filled a bug: 
http://ironpython.codeplex.com/WorkItem/View.aspx?WorkItemId=26940

--
-- Lukáš




More information about the Ironpython-users mailing list