[pypy-commit] pypy default: In later code these fields are expected to be mangled.

ademan noreply at buildbot.pypy.org
Sun Jul 3 05:33:42 CEST 2011


Author: Daniel Roberts <Ademan555 at gmail.com>
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


More information about the pypy-commit mailing list