[issue17825] Indentation.offset and SyntaxError.offset mismatch

Ezio Melotti report at bugs.python.org
Sat Apr 27 18:49:24 CEST 2013


Ezio Melotti added the comment:

I tried a few different lines that result in a syntax error and the position of the '^' always seems ok to me, so I'm not sure there's any bug here:

    foo:bar
       ^
    from import *
              ^
    try:+
        ^
    try+
       ^
    1?
     ^
    1+*1
      ^
    1+-*1
       ^
    [}]
     ^
    foo)
       ^

----------
nosy: +ezio.melotti
versions: +Python 3.4 -Python 2.7, Python 3.3

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue17825>
_______________________________________


More information about the Python-bugs-list mailing list