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

Roman Yakovenko roman.yakovenko at gmail.com
Sun Dec 18 11:47:16 CET 2005


On 12/15/05, Shin-ichi MORITA <shin1_morita at yahoo.co.jp> wrote:
> Hi David and Roman,
>
> I'm confused!
> You say "If you override __init__(), you must call
> module1.Derived.__init__()", don't you?
>
> But I do NOT override __init__() here.
>
> Again... everything is ok except for module1.
> Please check out "test_owner.tar.bz2" which I sent before.

I checked your test case on windows (vc 7.1) and it works as expected.
It seems, that I can not help you.

Sorry.

> Anyway, my concern is "boost::python::detail::wrapper_base
> should be polymorphic? (or should have virtual
> destructor?)".
>
> Thanks.
>
> David Abrahams <dave at boost-consulting.com> wrote:
> > > I think that __init__() is implicitly called
> > because
> > > __init__() is not overriden.
> >
> > It is not.  Listen to Roman.
>
>
>
> --------------------------------------
> STOP HIV/AIDS.
> Yahoo! JAPAN Redribbon Campaign 2005
> http://pr.mail.yahoo.co.jp/redribbon/
> _______________________________________________
> C++-sig mailing list
> C++-sig at python.org
> http://mail.python.org/mailman/listinfo/c++-sig
>



More information about the Cplusplus-sig mailing list