Author: Daniel Roberts <[email protected]>
Branch: 
Changeset: r45293:002c7b77a209
Date: 2011-06-27 20:26 -0700
http://bitbucket.org/pypy/pypy/changeset/002c7b77a209/

Log:    In later code these fields are expected to be mangled.

diff --git a/pypy/rpython/ootypesystem/rclass.py 
b/pypy/rpython/ootypesystem/rclass.py
--- a/pypy/rpython/ootypesystem/rclass.py
+++ b/pypy/rpython/ootypesystem/rclass.py
@@ -264,7 +264,8 @@
 
         for name, attrdef in selfattrs.iteritems():
             if not attrdef.readonly and self.is_quasi_immutable(name):
-                ootype.addFields(self.lowleveltype, {'mutable_'+name: OBJECT})
+                name = mangle('mutable_' + name, self.rtyper.getconfig())
+                ootype.addFields(self.lowleveltype, {name: OBJECT})
 
         classattributes = {}
         baseInstance = self.lowleveltype._superclass
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to