[pypy-svn] r76270 - in pypy/trunk/pypy/interpreter/astcompiler: . test
benjamin at codespeak.net
benjamin at codespeak.net
Sat Jul 17 06:37:38 CEST 2010
Author: benjamin
Date: Sat Jul 17 06:37:36 2010
New Revision: 76270
Modified:
pypy/trunk/pypy/interpreter/astcompiler/ast.py
pypy/trunk/pypy/interpreter/astcompiler/test/test_compiler.py
Log:
revert 76269; slightly incorrect and rather untested
Modified: pypy/trunk/pypy/interpreter/astcompiler/ast.py
==============================================================================
--- pypy/trunk/pypy/interpreter/astcompiler/ast.py (original)
+++ pypy/trunk/pypy/interpreter/astcompiler/ast.py Sat Jul 17 06:37:36 2010
@@ -1398,7 +1398,6 @@
def mutate_over(self, visitor):
self.elt = self.elt.mutate_over(visitor)
- visitor._mutate_sequence(self.generators)
return visitor.visit_ListComp(self)
def sync_app_attrs(self, space):
@@ -2296,13 +2295,6 @@
def walkabout(self, visitor):
visitor.visit_comprehension(self)
-
- def mutate_over(self, visitor):
- self.target = self.target.mutate_over(visitor)
- self.iter = self.iter.mutate_over(visitor)
- if self.ifs:
- visitor._mutate_sequence(self.ifs)
- return visitor.visit_comprehension(self)
def sync_app_attrs(self, space):
if (self.initialization_state & ~0) ^ 7:
Modified: pypy/trunk/pypy/interpreter/astcompiler/test/test_compiler.py
==============================================================================
--- pypy/trunk/pypy/interpreter/astcompiler/test/test_compiler.py (original)
+++ pypy/trunk/pypy/interpreter/astcompiler/test/test_compiler.py Sat Jul 17 06:37:36 2010
@@ -216,9 +216,6 @@
"l",
[(2, 0), (4, 0), (5, 3), (6, 0),
(7, 3), (8, 0), (8, 6), (9, 3)])
-
- def test_list_comprehensions(self):
- yield (self.st, "l = [x for x in range(10) if None]", "l", [])
def test_genexprs(self):
yield (self.st,
More information about the Pypy-commit
mailing list