[pypy-svn] r13148 - pypy/branch/lltype-refactoring/rpython

pedronis at codespeak.net pedronis at codespeak.net
Tue Jun 7 15:29:27 CEST 2005


Author: pedronis
Date: Tue Jun  7 15:29:26 2005
New Revision: 13148

Modified:
   pypy/branch/lltype-refactoring/rpython/lltype.py
Log:
_setfirst should use _setparentstructure too



Modified: pypy/branch/lltype-refactoring/rpython/lltype.py
==============================================================================
--- pypy/branch/lltype-refactoring/rpython/lltype.py	(original)
+++ pypy/branch/lltype-refactoring/rpython/lltype.py	Tue Jun  7 15:29:26 2005
@@ -396,8 +396,7 @@
             if T1 != T2:
                 raise InvalidCast(typeOf(p), typeOf(self))
             setattr(self._obj, field_name, p._obj)
-            p._obj._wrparent = weakref.ref(self._obj)
-            p._obj._parent_type = typeOf(self._obj)
+            p._obj._setparentstructure(self._obj, 0)
             return
         raise TypeError("%r instance has no first field" % (self._T,))
 



More information about the Pypy-commit mailing list