[Python-bugs-list] [ python-Bugs-522274 ] tokenizer.py STARSTAR doesn't exist
noreply@sourceforge.net
noreply@sourceforge.net
Sun, 24 Feb 2002 17:40:33 -0800
Bugs item #522274, was opened at 2002-02-24 17:40
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=522274&group_id=5470
Category: Parser/Compiler
Group: Python 2.2
Status: Open
Resolution: None
Priority: 5
Submitted By: Evelyn Mitchell (efm)
Assigned to: Nobody/Anonymous (nobody)
Summary: tokenizer.py STARSTAR doesn't exist
Initial Comment:
pyChecker complains at line 774 of tokenizer.py
No module attribute (STARSTAR) found
The section is:
if i < len(nodelist):
# should be DOUBLESTAR or STAR STAR
t = nodelist[i][0]
if t == token.DOUBLESTAR:
node = nodelist[i+1]
elif t == token.STARSTAR:
node = nodelist[i+2]
else:
raise ValueError, "unexpected
token: %s" % t
names.append(node[1])
flags = flags | CO_VARKEYWORDS
I've verified that there is no STARSTAR in token.py.
I'd patch this to be token.STAR, which does exist, but
this module has no self tests or unit tests, so I
wouldn't be able to know if it broke anything.
My wild guess is that the intention is to refer to two
STAR tokens rather than a DOUBLESTAR token (and that is
because the increment is 2 rather than 1), but I think
that evidence is pretty slim.
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=522274&group_id=5470