[C++-sig] returning a wrapper instance exposed in the other module is not converted to its owner PyObject

Shin-ichi MORITA shin1_morita at yahoo.co.jp
Mon Dec 12 16:55:46 CET 2005


Roman Yakovenko <roman.yakovenko at gmail.com> wrote:
> You are missing __init__ method. It is a must to
> call
> module1.Derived.__init__( self )

I think that __init__() is implicitly called because
__init__() is not overriden.

In case that there is only one single module, everything
is ok.

My case has two modules:
One exposes a function which signature contains a base
class,
the other exposes a derived class.

Thanks.


--------------------------------------
STOP HIV/AIDS.
Yahoo! JAPAN Redribbon Campaign 2005
http://pr.mail.yahoo.co.jp/redribbon/



More information about the Cplusplus-sig mailing list