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: Spurious Tabnanny error
Type: Stage:
Components: IDLE Versions: Python 2.5
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: kbk Nosy List: kbk, torhu
Priority: normal Keywords:

Created on 2006-09-21 08:23 by torhu, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (4)
msg29899 - (view) Author: torhu (torhu) Date: 2006-09-21 08:23
IDLE 1.2, Py 2.5 on WinXP SP2.

The extra parenthesis on the second line triggers a
warning message box:

"Tabnanny Tokenizing Error"
"Token Error: EOF in multi-line statement"

for i in range(10):
        a = list("123"))


The second line is indented with 8 or 4 spaces, doesn't
matter which.

Can't recall this happening in the IDLE version bundled
with py2.4.  Don't know if IDLE or the tabnanny module
is the culprit.
msg29900 - (view) Author: torhu (torhu) Date: 2006-09-21 08:25
Logged In: YES 
user_id=1038085

I also had somone on #python confirm this behavior for me.
msg29901 - (view) Author: Kurt B. Kaiser (kbk) * (Python committer) Date: 2006-10-01 21:17
Logged In: YES 
user_id=149084

Problem is with the tokenize module.

A pre-run tabnanny check was added to 2.5. 

I've corrected this by doing the syntax check first.

Rev 52083
msg62375 - (view) Author: Kurt B. Kaiser (kbk) * (Python committer) Date: 2008-02-14 04:50
backported 2.5.2c1
History
Date User Action Args
2022-04-11 14:56:20adminsetgithub: 44001
2008-02-14 04:50:39kbksetmessages: + msg62375
2006-09-21 08:23:18torhucreate