• Jeremy Hylton's avatar
    Fix com_arglist() and update grammar fragment. · 8d22b040
    Jeremy Hylton yazdı
    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.
    8d22b040
Adı
Son kayıt (commit)
Son güncelleme
..
__init__.py Loading commit data...
ast.py Loading commit data...
consts.py Loading commit data...
future.py Loading commit data...
misc.py Loading commit data...
pyassem.py Loading commit data...
pycodegen.py Loading commit data...
symbols.py Loading commit data...
syntax.py Loading commit data...
transformer.py Loading commit data...
visitor.py Loading commit data...