[pypy-svn] r11976 - pypy/dist/pypy/annotation

arigo at codespeak.net arigo at codespeak.net
Thu May 5 19:14:59 CEST 2005


Author: arigo
Date: Thu May  5 19:14:59 2005
New Revision: 11976

Modified:
   pypy/dist/pypy/annotation/bookkeeper.py
Log:
infnite recursion fix.


Modified: pypy/dist/pypy/annotation/bookkeeper.py
==============================================================================
--- pypy/dist/pypy/annotation/bookkeeper.py	(original)
+++ pypy/dist/pypy/annotation/bookkeeper.py	Thu May  5 19:14:59 2005
@@ -173,9 +173,9 @@
                 
                 if x not in self.seen_mutable: # avoid circular reflowing, 
                                                # see for example test_circular_mutable_getattr
+                    self.seen_mutable[x] = True
                     for attr in x.__dict__:
                         clsdef.add_source_for_attribute(attr, x) # can trigger reflowing
-                    self.seen_mutable[x] = True
                 return SomeInstance(clsdef)
         elif x is None:
             return self.getpbc(None)



More information about the Pypy-commit mailing list