Problem using swig

Alfonso Cepeda Caballos,,, cepeda at cartuja.us.es
Tue Nov 4 16:47:41 CET 2003


Hello

I've created a class on C++ with a virtual function. I've
compiled that class and created on python a derivated class
from that.

class clpy(clc):
    def func1:
  
with clc the class on c++ and func1 the virtual function on
the clc class.

If I use on python the func1 function it's executed the python
defined function (clpy.func1), and if I use the func1 function
on c++ it's executed the clc.func1 function.

The problem is that I'd like on another function of clc execute
the overloaded function of python. So on clc I use a
this->func1(); but it's executed the clc.func1 function and not
clpy.func1 function.

Is there any way to do that?
I'm using swig 1.3

Thank you.




More information about the Python-list mailing list