summaryrefslogtreecommitdiff
path: root/Lib/compiler/ast.py
diff options
context:
space:
mode:
authorNeil Schemenauer <nascheme@enme.ucalgary.ca>2006-08-16 23:38:05 +0000
committerNeil Schemenauer <nascheme@enme.ucalgary.ca>2006-08-16 23:38:05 +0000
commit4c6b0d5bec587770e0d83b550faae97fe251cc65 (patch)
tree1b472e824d748456dc4823ca047d67fd807c8d2f /Lib/compiler/ast.py
parent7ae354846fff616746eeba6d27ccd5c175591cae (diff)
downloadcpython-git-4c6b0d5bec587770e0d83b550faae97fe251cc65.tar.gz
Fix a bug in the ``compiler`` package that caused invalid code to be
generated for generator expressions.
Diffstat (limited to 'Lib/compiler/ast.py')
-rw-r--r--Lib/compiler/ast.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/Lib/compiler/ast.py b/Lib/compiler/ast.py
index 8dcdf68ada..93437d6cee 100644
--- a/Lib/compiler/ast.py
+++ b/Lib/compiler/ast.py
@@ -583,11 +583,9 @@ class GenExpr(Node):
def __init__(self, code, lineno=None):
self.code = code
self.lineno = lineno
- self.argnames = ['[outmost-iterable]']
+ self.argnames = ['.0']
self.varargs = self.kwargs = None
-
-
def getChildren(self):
return self.code,