Re: [C++-sig] Dynamic resolution of members and methods

2008-12-10 Thread Alex Mohr
Override the python special methods __getattr__ or __getattribute__. http://docs.python.org/reference/datamodel.html#attribute-access Alex Jérémie Delaitre wrote: Hello, I have a C++ class that use a custom property system. This property system allows me to add and remove properties at runtim

[C++-sig] Dynamic resolution of members and methods

2008-12-10 Thread Jérémie Delaitre
Hello, I have a C++ class that use a custom property system. This property system allows me to add and remove properties at runtime. I want to expose this class into Python. The problem is: I want "a dynamic resolution" of the properties in Python. For example: # import my python extension im