[pypy-svn] r5072 - pypy/trunk/src/pypy/interpreter

arigo at codespeak.net arigo at codespeak.net
Sat Jun 12 16:14:27 CEST 2004


Author: arigo
Date: Sat Jun 12 16:14:27 2004
New Revision: 5072

Modified:
   pypy/trunk/src/pypy/interpreter/typedef.py
Log:
Yet Another Fix for the trivial object space.


Modified: pypy/trunk/src/pypy/interpreter/typedef.py
==============================================================================
--- pypy/trunk/src/pypy/interpreter/typedef.py	(original)
+++ pypy/trunk/src/pypy/interpreter/typedef.py	Sat Jun 12 16:14:27 2004
@@ -137,12 +137,14 @@
 from pypy.interpreter.nestedscope import Cell
 
 def descr_get_dict(space, w_obj):
-    w_dict = w_obj.getdict()
-    assert w_dict is not None, repr(w_obj)
+    obj = space.unwrap_builtin(w_obj)
+    w_dict = obj.getdict()
+    assert w_dict is not None, repr(obj)
     return w_dict
 
 def descr_set_dict(space, w_obj, w_dict):
-    w_obj.setdict(w_dict)
+    obj = space.unwrap_builtin(w_obj)
+    obj.setdict(w_dict)
 
 default_dict_descr = GetSetProperty(descr_get_dict, descr_set_dict)
 



More information about the Pypy-commit mailing list