[issue1778] SyntaxError.offset sometimes wrong

Achim Gaedke report at bugs.python.org
Thu Jan 10 00:19:47 CET 2008


New submission from Achim Gaedke:

The value SyntaxError.offset is for most SyntaxErrors an offset from
beginning of line SyntaxError.lineno. In case of an triple-quoted string
which is not at all closed, offset seems to be the offset from beginning
of the buffer.

----------
components: Interpreter Core
files: compile_test.py
messages: 59634
nosy: AchimGaedke
severity: normal
status: open
title: SyntaxError.offset sometimes wrong
type: behavior
versions: Python 2.4, Python 2.5
Added file: http://bugs.python.org/file9116/compile_test.py

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1778>
__________________________________


More information about the Python-bugs-list mailing list