summaryrefslogtreecommitdiff
path: root/Tools/compiler
diff options
context:
space:
mode:
authorFacundo Batista <facundobatista@gmail.com>2008-02-25 18:06:00 +0000
committerFacundo Batista <facundobatista@gmail.com>2008-02-25 18:06:00 +0000
commit4219da4bd0bd46733e6c07ea33c57d45e11641cf (patch)
treec134c4de7dc6a217c0cb719e555386894fd41e8a /Tools/compiler
parenta3c8c10201fb38fb078a4ad2758d945d44c07a5f (diff)
downloadcpython-git-4219da4bd0bd46733e6c07ea33c57d45e11641cf.tar.gz
Issue 2117. Update compiler module to handle class decorators.
Thanks Thomas Herve
Diffstat (limited to 'Tools/compiler')
-rw-r--r--Tools/compiler/ast.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/Tools/compiler/ast.txt b/Tools/compiler/ast.txt
index 7968a52228..2dfb372f3c 100644
--- a/Tools/compiler/ast.txt
+++ b/Tools/compiler/ast.txt
@@ -14,7 +14,7 @@ Stmt: nodes!
Decorators: nodes!
Function: decorators&, name*, argnames*, defaults!, flags*, doc*, code
Lambda: argnames*, defaults!, flags*, code
-Class: name*, bases!, doc*, code
+Class: name*, bases!, doc*, code, decorators& = None
Pass:
Break:
Continue:
@@ -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):