diff options
author | Jeremy Hylton <jeremy@alum.mit.edu> | 2000-02-08 18:57:32 (GMT) |
---|---|---|
committer | Jeremy Hylton <jeremy@alum.mit.edu> | 2000-02-08 18:57:32 (GMT) |
commit | 9605c11c4c3127e3b1749eb4f65b80e9e7db0d8e (patch) | |
tree | cb4fb3a9853065949523ad366f130449b3987142 /Lib/compiler/transformer.py | |
parent | 69e2c6efbbeff44285f071d011e5e56f5fc26bad (diff) | |
download | cpython-9605c11c4c3127e3b1749eb4f65b80e9e7db0d8e.zip cpython-9605c11c4c3127e3b1749eb4f65b80e9e7db0d8e.tar.gz cpython-9605c11c4c3127e3b1749eb4f65b80e9e7db0d8e.tar.bz2 |
move constants out of transformer so that they can be shared with ast
add varargs and kwargs attributes to Function nodes
Diffstat (limited to 'Lib/compiler/transformer.py')
-rw-r--r-- | Lib/compiler/transformer.py | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/Lib/compiler/transformer.py b/Lib/compiler/transformer.py index 9200f7a..42d34dc 100644 --- a/Lib/compiler/transformer.py +++ b/Lib/compiler/transformer.py @@ -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 = [] |