Beispiel #1
0
 def __setattribute__(self, attr, value):
     attr = as_cstring(attr)
     check(lib.setfield(self.ptr, attr, value.ptr))
Beispiel #2
0
 def __getattr__(self, attr):
     attr = as_cstring(attr)
     return wrap(lib.getfield(self.ptr, attr))