Re: [pygccxml-development] Parameter passing, ownership semantics
Brought to you by:
mbaas,
roman_yakovenko
From: Roman Y. <rom...@gm...> - 2007-02-20 06:42:25
|
On 2/20/07, Gustavo Carneiro <gjc...@gm...> wrote: > > On 2/19/07, Roman Yakovenko <rom...@gm...> wrote: > > > > Hi. Unfortunately I reproduced the error and was not able to fix it > > :-(((((. > > > Hey, thanks a lot anyway; it is now a problem in boost, but you solved > the Py++ part of the problem with commendable speed. > > There is something I don't understand and I think this is Boost.Pythonbug. > > > > I do made some progress. > > > > 1. When you derive Python class from a C++ one you have to define > > __init__ > > method, otherwise your code will not work: > > > Since when does a subclass have to define __init__ in order to get the > parent class __init__ called? What you say goes against all my python > knowledge... > During __init__ method of parent class reference to relevant Python object is saved and associated with the C++ class. -- Roman Yakovenko C++ Python language binding http://www.language-binding.net/ |