Commits

wlav  committed 7bbc004

cleanup

  • Participants
  • Parent commits 6c1e93c
  • Branches reflex-support

Comments (0)

Files changed (2)

File pypy/jit/metainterp/optimizeopt/fficall.py

     optimize_CALL_MAY_FORCE = optimize_CALL
 
     def optimize_FORCE_TOKEN(self, op):
-        # The handling of force_token needs a bit of exaplanation.
+        # The handling of force_token needs a bit of explanation.
         # The original trace which is getting optimized looks like this:
         #    i1 = force_token()
         #    setfield_gc(p0, i1, ...)

File pypy/module/cppyy/interp_cppyy.py

 
 
 class W_CPPLibrary(Wrappable):
-    _immutable_fields_ = ["cdll"]
+    _immutable_ = True
 
     def __init__(self, space, cdll):
         self.cdll = cdll
 
 
 class W_CPPOverload(Wrappable):
-    _immutable_fields_ = ["scope_handle", "func_name", "functions[*]"]
+    _immutable_ = True
 
     def __init__(self, space, scope_handle, func_name, functions):
         self.space = space
 
 
 class W_CPPDataMember(Wrappable):
-    _immutable_fields_ = ["scope_handle", "converter", "offset", "_is_static"]
+    _immutable_ = True
 
     def __init__(self, space, scope_handle, type_name, offset, is_static):
         self.space = space
 
 
 class W_CPPScope(Wrappable):
-    _immutable_fields_ = ["name", "handle"]
+    _immutable_ = True
+    _immutable_fields_ = ["methods[*]", "data_members[*]"]
 
     kind = "scope"
 
 # classes for inheritance. Both are python classes, though, and refactoring
 # may be in order at some point.
 class W_CPPNamespace(W_CPPScope):
+    _immutable_ = True
+
     kind = "namespace"
 
     def _make_cppfunction(self, method_index):
 
 
 class W_CPPType(W_CPPScope):
+    _immutable_ = True
+
     kind = "class"
 
     def _make_cppfunction(self, method_index):
 
 
 class W_ComplexCPPType(W_CPPType):
+    _immutable_ = True
+
     @jit.elidable_promote()
     def get_cppthis(self, cppinstance, scope_handle):
         offset = capi.c_base_offset(
 
 
 class W_CPPTemplateType(Wrappable):
-    _immutable_fields_ = ["name", "handle"]
+    _immutable_ = True
 
     def __init__(self, space, name, handle):
         self.space = space