pure virtual methods with pyste
Hello, i'm a boost.python / pyste newbie, and what i've seen so far looks very well to me. I am especially interested in using pyste for creating python bindings. However, i've ran into the following problem with pyste: All pure virtual methods of abstract classes are hidden in python, i.e. it's not accessible to use them in python. I've played around with 'normal' boost.python, and managed it to create wrappers for pure virtual methods. Is it planned to produce bindings for pure virtual functions or am i asking for the impossible ? Thanks for the great work ! Christoph
Hi Christoph, christoph.wiedemann@daimlerchrysler.com wrote:
Hello,
i'm a boost.python / pyste newbie, and what i've seen so far looks very well to me. I am especially interested in using pyste for creating python bindings.
However, i've ran into the following problem with pyste: All pure virtual methods of abstract classes are hidden in python, i.e. it's not accessible to use them in python. I've played around with 'normal' boost.python, and managed it to create wrappers for pure virtual methods. Is it planned to produce bindings for pure virtual functions or am i asking for the impossible ?
Yes, it follows the procedure in the tutorial about abstract virtual functions, ie, it only generates the virtual wrapper. You should still be able to override the abstract member functions in Python, though... is this the problem you're having? Regards, Nicodemus.
participants (2)
-
christoph.wiedemann@daimlerchrysler.com -
Nicodemus