[pypy-svn] r66998 - pypy/branch/pyjitpl5/pypy/objspace/std

benjamin at codespeak.net benjamin at codespeak.net
Wed Aug 19 19:07:37 CEST 2009


Author: benjamin
Date: Wed Aug 19 19:07:37 2009
New Revision: 66998

Modified:
   pypy/branch/pyjitpl5/pypy/objspace/std/typeobject.py
Log:
mark __flags__ as immutable on W_TypeObject

Modified: pypy/branch/pyjitpl5/pypy/objspace/std/typeobject.py
==============================================================================
--- pypy/branch/pyjitpl5/pypy/objspace/std/typeobject.py	(original)
+++ pypy/branch/pyjitpl5/pypy/objspace/std/typeobject.py	Wed Aug 19 19:07:37 2009
@@ -50,6 +50,8 @@
     lazyloaders = {} # can be overridden by specific instances
     version_tag = None
 
+    _immutable_fields_ = ["__flags__"]
+
     uses_object_getattribute = False
     # ^^^ for config.objspace.std.getattributeshortcut
     # (False is a conservative default, fixed during real usage)



More information about the Pypy-commit mailing list