[New-bugs-announce] [issue3973] Invalid line number in Exception traceback with header # -*- coding: xxx -*-
STINNER Victor
report at bugs.python.org
Fri Sep 26 12:52:11 CEST 2008
New submission from STINNER Victor <victor.stinner at haypocalc.com>:
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 <report at bugs.python.org>
<http://bugs.python.org/issue3973>
_______________________________________
More information about the New-bugs-announce
mailing list