[pypy-svn] r13495 - pypy/dist/pypy/rpython

arigo at codespeak.net arigo at codespeak.net
Fri Jun 17 00:38:43 CEST 2005


Author: arigo
Date: Fri Jun 17 00:38:42 2005
New Revision: 13495

Modified:
   pypy/dist/pypy/rpython/rclass.py
Log:
Ordering issue.  Cannot call attachRuntimeTypeInfo() before setup() says it is
ready because the former cna call the latter again.


Modified: pypy/dist/pypy/rpython/rclass.py
==============================================================================
--- pypy/dist/pypy/rpython/rclass.py	(original)
+++ pypy/dist/pypy/rpython/rclass.py	Fri Jun 17 00:38:42 2005
@@ -344,10 +344,10 @@
         allinstancefields.update(fields)
         self.fields = fields
         self.allinstancefields = allinstancefields
+        self.initialized = True
         self.rtyper.attachRuntimeTypeInfoFunc(self.object_type,
                                               ll_runtime_type_info,
                                               OBJECT)
-        self.initialized = True
 
     def convert_const(self, value):
         if value is None:



More information about the Pypy-commit mailing list