[pypy-svn] r77654 - in pypy/branch/fast-forward/pypy/interpreter/astcompiler: . tools

afa at codespeak.net afa at codespeak.net
Wed Oct 6 16:41:04 CEST 2010


Author: afa
Date: Wed Oct  6 16:41:01 2010
New Revision: 77654

Modified:
   pypy/branch/fast-forward/pypy/interpreter/astcompiler/ast.py
   pypy/branch/fast-forward/pypy/interpreter/astcompiler/tools/asdl_py.py
Log:
Regenerated ast.py.
The change probably means that code inside dict and set comprehension was not optimized.


Modified: pypy/branch/fast-forward/pypy/interpreter/astcompiler/ast.py
==============================================================================
--- pypy/branch/fast-forward/pypy/interpreter/astcompiler/ast.py	(original)
+++ pypy/branch/fast-forward/pypy/interpreter/astcompiler/ast.py	Wed Oct  6 16:41:01 2010
@@ -1499,6 +1499,8 @@
 
     def mutate_over(self, visitor):
         self.elt = self.elt.mutate_over(visitor)
+        if self.generators:
+            visitor._mutate_sequence(self.generators)
         return visitor.visit_SetComp(self)
 
     def sync_app_attrs(self, space):
@@ -1540,6 +1542,8 @@
     def mutate_over(self, visitor):
         self.key = self.key.mutate_over(visitor)
         self.value = self.value.mutate_over(visitor)
+        if self.generators:
+            visitor._mutate_sequence(self.generators)
         return visitor.visit_DictComp(self)
 
     def sync_app_attrs(self, space):

Modified: pypy/branch/fast-forward/pypy/interpreter/astcompiler/tools/asdl_py.py
==============================================================================
--- pypy/branch/fast-forward/pypy/interpreter/astcompiler/tools/asdl_py.py	(original)
+++ pypy/branch/fast-forward/pypy/interpreter/astcompiler/tools/asdl_py.py	Wed Oct  6 16:41:01 2010
@@ -576,7 +576,7 @@
 
 
 class _FieldsWrapper(Wrappable):
-    "Hack around the fact we can't store tuples on a TypeDef."
+    "Hack around the fact we can\'t store tuples on a TypeDef."
 
     def __init__(self, fields):
         self.fields = fields



More information about the Pypy-commit mailing list