This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Error arrow offset wrong
Type: Stage:
Components: IDLE Versions: Python 2.4
process
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: Nosy List: ctimmerman, georg.brandl
Priority: normal Keywords:

Created on 2007-01-25 09:51 by ctimmerman, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (2)
msg31094 - (view) Author: Cees Timmerman (ctimmerman) Date: 2007-01-25 09:51
>>> 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
msg31095 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2007-01-25 16:30
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.
History
Date User Action Args
2022-04-11 14:56:22adminsetgithub: 44507
2007-01-25 09:51:57ctimmermancreate