[C++-sig] Re: deriving in python from a C++ base class

Stefan Seefeld seefeld at sympatico.ca
Fri Jul 4 15:43:38 CEST 2003


Hi David,

David Abrahams wrote:

>>PS: by the way, I found the article you cite very useful, and I think that
>>     it illustrates things that are not or less clearly documented in the
>>     tutorial / reference. May be some of the text could be copied over...
> 
> 
> Specific suggestions will certainly be considered.

something that I'd like to understand is the relationship between the 
C++ classes / objects and the corresponding python classes / objects.

I noted that I can call the parent's __init__ function multiple times,
which invokes the C++ base class constructor. It seems that way I can
instantiate more than one base class objects. Is that a specific
boost.python problem/feature or is that part of the python object model
? (It's hard to debug python, i.e. I can't log the 'this pointer' in 
python, so I only know from boost.python that there are multiple C++
base instances)....

Stefan








More information about the Cplusplus-sig mailing list