[pypy-svn] r24178 - pypy/dist/pypy/objspace

cfbolz at codespeak.net cfbolz at codespeak.net
Thu Mar 9 15:17:18 CET 2006


Author: cfbolz
Date: Thu Mar  9 15:17:12 2006
New Revision: 24178

Modified:
   pypy/dist/pypy/objspace/logic.py
Log:
to strategic asserts to convince the annotator that W_Root does not have a
w_bound_to attribute


Modified: pypy/dist/pypy/objspace/logic.py
==============================================================================
--- pypy/dist/pypy/objspace/logic.py	(original)
+++ pypy/dist/pypy/objspace/logic.py	Thu Mar  9 15:17:12 2006
@@ -32,6 +32,7 @@
         # to remove indirections
         w_curr = w_self
         while w_curr.w_bound_to is not w_obj:
+            assert isinstance(w_curr, W_Var)
             w_next = w_curr.w_bound_to
             w_curr.w_bound_to = w_obj
             w_curr = w_next
@@ -67,6 +68,7 @@
             return
     w_curr = w_var
     while w_curr is not None:
+        assert isinstance(w_curr, W_Var)
         w_next = w_curr.w_bound_to
         w_curr.w_bound_to = w_obj
         w_curr = w_next



More information about the Pypy-commit mailing list