[ python-Bugs-1644239 ] Error arrow offset wrong

SourceForge.net noreply at sourceforge.net
Thu Jan 25 17:30:48 CET 2007


Bugs item #1644239, was opened at 2007-01-25 09:51
Message generated for change (Comment added) made by gbrandl
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1644239&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: IDLE
Group: Python 2.4
>Status: Closed
>Resolution: Invalid
Priority: 5
Private: No
Submitted By: Cees Timmerman (ctimmerman)
Assigned to: Nobody/Anonymous (nobody)
Summary: Error arrow offset wrong

Initial Comment:
>>> def check_path(f):
...     asert not '"' in f
  File "<stdin>", line 2
    asert not '"' in f
                ^
SyntaxError: invalid syntax


It looks like the tab i used to indent was converted to 4 spaces and then each space back to tabs which each got converted to 4 spaces.

Python 2.4.4c1 (#2, Oct 11 2006, 21:51:02)
[GCC 4.1.2 20060928 (prerelease) (Ubuntu 4.1.1-13ubuntu5)] on linux2


----------------------------------------------------------------------

>Comment By: Georg Brandl (gbrandl)
Date: 2007-01-25 16:30

Message:
Logged In: YES 
user_id=849994
Originator: NO

This has nothing to do with tabs, the arrow is at the same position when
indenting with spaces.

An "asert" alone on a line is not invalid syntax.
A line starting with "asert not " is not necessarily invalid too since
e.g. "in x" could follow.
But as soon as you add "'", it's invalid, so the parsers shows the arrow
there.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1644239&group_id=5470


More information about the Python-bugs-list mailing list