[pypy-svn] r13807 - pypy/dist/pypy/rpython
arigo at codespeak.net
arigo at codespeak.net
Fri Jun 24 16:05:53 CEST 2005
Author: arigo
Date: Fri Jun 24 16:05:50 2005
New Revision: 13807
Modified:
pypy/dist/pypy/rpython/rclass.py
pypy/dist/pypy/rpython/rpbc.py
Log:
Fix: make sure that we call setup() on all InstanceRepr, ClassRepr, PBCRepr.
Modified: pypy/dist/pypy/rpython/rclass.py
==============================================================================
--- pypy/dist/pypy/rpython/rclass.py (original)
+++ pypy/dist/pypy/rpython/rclass.py Fri Jun 24 16:05:50 2005
@@ -64,6 +64,7 @@
else:
result = ClassRepr(rtyper, classdef)
rtyper.class_reprs[classdef] = result
+ rtyper.reprs_must_call_setup.append(result)
return result
def getinstancerepr(rtyper, classdef):
@@ -76,6 +77,7 @@
else:
result = InstanceRepr(rtyper,classdef)
rtyper.instance_reprs[classdef] = result
+ rtyper.reprs_must_call_setup.append(result)
return result
class MissingRTypeAttribute(TyperError):
Modified: pypy/dist/pypy/rpython/rpbc.py
==============================================================================
--- pypy/dist/pypy/rpython/rpbc.py (original)
+++ pypy/dist/pypy/rpython/rpbc.py Fri Jun 24 16:05:50 2005
@@ -83,6 +83,7 @@
except KeyError:
result = MultipleFrozenPBCRepr(rtyper, access)
rtyper.pbc_reprs[access] = result
+ rtyper.reprs_must_call_setup.append(result)
return result
More information about the Pypy-commit
mailing list