[pypy-svn] r24180 - pypy/dist/pypy/objspace
cfbolz at codespeak.net
cfbolz at codespeak.net
Thu Mar 9 16:23:30 CET 2006
Author: cfbolz
Date: Thu Mar 9 16:23:30 2006
New Revision: 24180
Modified:
pypy/dist/pypy/objspace/logic.py
Log:
even risking that I need to change it again: now the w_bound_to method does not
move up to W_Root -- don't know whether it actually compiles
Modified: pypy/dist/pypy/objspace/logic.py
==============================================================================
--- pypy/dist/pypy/objspace/logic.py (original)
+++ pypy/dist/pypy/objspace/logic.py Thu Mar 9 16:23:30 2006
@@ -31,9 +31,11 @@
# actually attach the object directly to each variable
# to remove indirections
w_curr = w_self
- while w_curr.w_bound_to is not w_obj:
+ while 1:
assert isinstance(w_curr, W_Var)
w_next = w_curr.w_bound_to
+ if not isinstance(w_next, W_Var):
+ break
w_curr.w_bound_to = w_obj
w_curr = w_next
return w_obj
More information about the Pypy-commit
mailing list