[pypy-commit] pypy dynamic-specialized-tuple: fix enum_dependencies

fijal noreply at buildbot.pypy.org
Mon Apr 23 18:01:17 CEST 2012


Author: Maciej Fijalkowski <fijall at gmail.com>
Branch: dynamic-specialized-tuple
Changeset: r54681:6fbb57921a2d
Date: 2012-04-23 18:00 +0200
http://bitbucket.org/pypy/pypy/changeset/6fbb57921a2d/

Log:	fix enum_dependencies

diff --git a/pypy/translator/c/node.py b/pypy/translator/c/node.py
--- a/pypy/translator/c/node.py
+++ b/pypy/translator/c/node.py
@@ -584,8 +584,9 @@
             yield shape
             for elem in ll_enumerate_elements(self.obj):
                 yield elem
-        for name in T._names:
-            yield getattr(self.obj, name)
+        else:
+            for name in T._names:
+                yield getattr(self.obj, name)
 
     def getlength(self):
         T = self.getTYPE()


More information about the pypy-commit mailing list