New submission from STINNER Victor <[EMAIL PROTECTED]>: Short example: --- # -*- coding: ASCII -*- raise Exception("line 2") ---
Result: ---- Traceback (most recent call last): File "plop.py", line 3, in <module> Exception: line 2 ---- The problem is around newtracebackobject() which calls PyCode_Addr2Line(). It maybe a bug is frame->co_lnotab generation. This bus is specified to python3 (trunk). ---------- messages: 73841 nosy: haypo severity: normal status: open title: Invalid line number in Exception traceback with header # -*- coding: xxx -*- versions: Python 3.0 _______________________________________ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue3973> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com