[pypy-svn] r55039 - pypy/branch/smalltalk-shadow-changes/pypy/lang/smalltalk

cfbolz at codespeak.net cfbolz at codespeak.net
Tue May 20 20:44:24 CEST 2008


Author: cfbolz
Date: Tue May 20 20:44:21 2008
New Revision: 55039

Modified:
   pypy/branch/smalltalk-shadow-changes/pypy/lang/smalltalk/model.py
Log:
fix translation bug


Modified: pypy/branch/smalltalk-shadow-changes/pypy/lang/smalltalk/model.py
==============================================================================
--- pypy/branch/smalltalk-shadow-changes/pypy/lang/smalltalk/model.py	(original)
+++ pypy/branch/smalltalk-shadow-changes/pypy/lang/smalltalk/model.py	Tue May 20 20:44:21 2008
@@ -181,6 +181,8 @@
         return isinstance(self.hash, int)
 
     def become(self, w_other):
+        if not isinstance(w_other, W_AbstractObjectWithIdentityHash):
+            return False
         self.hash, w_other.hash = w_other.hash, self.hash
         return True
 



More information about the Pypy-commit mailing list