Commits

wlav committed e3f9b01

translation fixes: immutability consistency

  • Participants
  • Parent commits b83af8a
  • Branches reflex-support

Comments (0)

Files changed (1)

File pypy/module/cppyy/interp_cppyy.py

 
 class W_CPPLibrary(Wrappable):
     _immutable_ = True
+
     def __init__(self, space, cdll):
         self.cdll = cdll
         self.space = space
 
 
 class CPPFunction(CPPMethod):
+    _immutable_ = True
+
     def call(self, cppthis, args_w):
         if self.executor is None:
             raise OperationError(self.space.w_TypeError, self.space.wrap("return type not handled"))
  
 
 class CPPConstructor(CPPMethod):
+    _immutable_=True
+
     def call(self, cppthis, args_w):
         assert not cppthis
         newthis = capi.c_allocate(self.cpptype.handle)
 class W_CPPOverload(Wrappable):
     _immutable_ = True
     _immutable_fields_ = ["func_name", "functions[*]"]
+
     def __init__(self, space, func_name, functions):
         self.space = space
         self.func_name = func_name
 
 
 class W_CPPDataMember(Wrappable):
+    _immutable_=True
     _immutable_fields_ = ["converter", "offset"]
+
     def __init__(self, space, cpptype, offset):
         self.space = space
         self.converter = converter.get_converter(self.space, cpptype)
 
 
 class W_CPPStaticDataMember(W_CPPDataMember):
+    _immutable_=True
+
     def is_static(self):
         return self.space.w_True
 
 
 class W_CPPType(Wrappable):
     _immutable_fields_ = ["name", "handle"]
+
     def __init__(self, space, name, handle):
         self.space = space
         self.name = name
 
 
 class W_CPPInstance(Wrappable):
+    _immutable_fields_ = ["cppclass"]
+
     def __init__(self, space, cppclass, rawobject):
         self.space = space
         self.cppclass = cppclass