mirror of
https://github.com/python/cpython
synced 2026-09-29 10:15:30 +03:00
SF patch 1547796 by Georg Brandl -- set literals.
This commit is contained in:
parent
ecfd0b2f3b
commit
86e58e239e
22 changed files with 229 additions and 72 deletions
|
|
@ -50,11 +50,11 @@ GenExprFor: assign, iter, ifs!
|
|||
GenExprIf: test
|
||||
List: nodes!
|
||||
Dict: items!
|
||||
Set: items!
|
||||
Not: expr
|
||||
Compare: expr, ops!
|
||||
Name: name*
|
||||
Global: names*
|
||||
Backquote: expr
|
||||
Getattr: expr, attrname*
|
||||
CallFunc: node, args!, star_args& = None, dstar_args& = None
|
||||
Keyword: name*, expr
|
||||
|
|
@ -97,7 +97,7 @@ init(Lambda):
|
|||
self.kwargs = 1
|
||||
|
||||
init(GenExpr):
|
||||
self.argnames = ['[outmost-iterable]']
|
||||
self.argnames = ['.0']
|
||||
self.varargs = self.kwargs = None
|
||||
|
||||
init(GenExprFor):
|
||||
|
|
|
|||
|
|
@ -235,7 +235,7 @@ if __name__ == "__main__":
|
|||
|
||||
This file is automatically generated by Tools/compiler/astgen.py
|
||||
"""
|
||||
from consts import CO_VARARGS, CO_VARKEYWORDS
|
||||
from compiler.consts import CO_VARARGS, CO_VARKEYWORDS
|
||||
|
||||
def flatten(seq):
|
||||
l = []
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue