[ python-Bugs-1562716 ] Spurious Tabnanny error

SourceForge.net noreply at sourceforge.net
Sun Oct 1 23:17:31 CEST 2006


Bugs item #1562716, was opened at 2006-09-21 04:23
Message generated for change (Comment added) made by kbk
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1562716&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.5
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: torhu (torhu)
>Assigned to: Kurt B. Kaiser (kbk)
Summary: Spurious Tabnanny error

Initial Comment:
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.

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

>Comment By: Kurt B. Kaiser (kbk)
Date: 2006-10-01 17:17

Message:
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

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

Comment By: torhu (torhu)
Date: 2006-09-21 04:25

Message:
Logged In: YES 
user_id=1038085

I also had somone on #python confirm this behavior for me.

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

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


More information about the Python-bugs-list mailing list