Re: [C++-sig] how to call base class method?

2011-05-06 Thread zeb
Making a A_get wrapper seems to be the only way to solve this problem. THANK YOU JIM -- View this message in context: http://boost.2283326.n4.nabble.com/how-to-call-base-class-method-tp3504749p3505083.html Sent from the Python - c++-sig mailing list archive at Nabble.com.

Re: [C++-sig] how to call base class method?

2011-05-06 Thread Jim Bosch
On 05/06/2011 06:51 PM, zeb wrote: I have 2 class exposed to python: class A { public: virtual int get() { return 1; } }; class B : public A { public: virtual int get() { return 2; } }; In python: obj = B() obj.get() # this will call B's get() For some reason, I want to call A's get(

[C++-sig] how to call base class method?

2011-05-06 Thread zeb
I have 2 class exposed to python: class A { public: virtual int get() { return 1; } }; class B : public A { public: virtual int get() { return 2; } }; In python: obj = B() obj.get() # this will call B's get() For some reason, I want to call A's get() in python, like obj->A::get() in C++.