8d22b0409b
SF bug #522264 reported by Evelyn Mitchell. The code included a comment about "STAR STAR" which was translated into the code as the bogus attribute token.STARSTAR. This name never caused an attribute error because it was never retrieved. The code was based on an old version of the grammar that specified kwargs as two tokens ('*' '*'). I checked as far back as 2.1 and didn't find this production. The fix is simple, because token.DOUBLESTAR is the only token allowed. Also update the grammar fragment in com_arglist(). XXX I'll bet lots of other grammar fragments in comments are out of date, probably in this module and in compile.c. |
||
---|---|---|
.. | ||
__init__.py | ||
ast.py | ||
consts.py | ||
future.py | ||
misc.py | ||
pyassem.py | ||
pycodegen.py | ||
symbols.py | ||
syntax.py | ||
transformer.py | ||
visitor.py |