[pypy-svn] r54273 - pypy/dist/pypy/interpreter

arigo at codespeak.net arigo at codespeak.net
Wed Apr 30 15:26:47 CEST 2008


Author: arigo
Date: Wed Apr 30 15:26:46 2008
New Revision: 54273

Modified:
   pypy/dist/pypy/interpreter/typedef.py
Log:
Translation fix (propagate the effect of isinstance(w_dict)).


Modified: pypy/dist/pypy/interpreter/typedef.py
==============================================================================
--- pypy/dist/pypy/interpreter/typedef.py	(original)
+++ pypy/dist/pypy/interpreter/typedef.py	Wed Apr 30 15:26:46 2008
@@ -258,8 +258,7 @@
                 return self.w__dict__
             
             def setdict(self, space, w_dict):
-                check_new_dictionary(space, w_dict)
-                self.w__dict__ = w_dict
+                self.w__dict__ = check_new_dictionary(space, w_dict)
             
             def user_setup(self, space, w_subtype):
                 self.space = space
@@ -306,6 +305,7 @@
     if space.config.objspace.std.withmultidict:
         from pypy.objspace.std import dictmultiobject
         assert isinstance(w_dict, dictmultiobject.W_DictMultiObject)
+    return w_dict
 check_new_dictionary._dont_inline_ = True
 
 def call_user_destructor(space, w_self):



More information about the Pypy-commit mailing list