mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +00:00
move constants out of transformer so that they can be shared with ast
add varargs and kwargs attributes to Function nodes
This commit is contained in:
parent
69e2c6efbb
commit
9605c11c4c
4 changed files with 18 additions and 16 deletions
|
|
@ -99,14 +99,8 @@ import pprint
|
|||
|
||||
error = 'walker.error'
|
||||
|
||||
# code flags
|
||||
CO_VARARGS = 1
|
||||
CO_VARKEYWORDS = 2
|
||||
|
||||
# operation flags
|
||||
OP_ASSIGN = 'OP_ASSIGN'
|
||||
OP_DELETE = 'OP_DELETE'
|
||||
OP_APPLY = 'OP_APPLY'
|
||||
from consts import CO_VARARGS, CO_VARKEYWORDS
|
||||
from consts import OP_ASSIGN, OP_DELETE, OP_APPLY
|
||||
|
||||
def asList(nodes):
|
||||
l = []
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue