[C++-sig] hijacking getattr/setattr

2009-05-07 Thread Václav Šmilauer
Hello, I have wrapper c++ classes that are exposed to python that wrap "real" c++ classes with data. Wrapper classes have some attributes that .def'ed and .add_property'd in the glue code. Wrapped classes have also attributes that are registered by name (for serialization purposes) and I can

Re: [C++-sig] hijacking getattr/setattr

2009-05-07 Thread Václav Šmilauer
Forgotten attachment (sorry): python hijack. class A(object): """Class with two attribute sets: one set in the class itself, one in a proxied dictionary (called props here). The classe has 'a' attribute for itself and (b,c) attributes in the proxee. They are accessed in the same way. Adding/dele