[New-bugs-announce] [issue1778] SyntaxError.offset sometimes wrong

Achim Gaedke report at bugs.python.org
Thu Jan 10 00:19:46 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>

More information about the New-bugs-announce mailing list