On 2011-09-08 13:01, James Amundson wrote:
> I would like to be able to create a Python class derived from a C++
> class, then pass a instance of the Python class back to C++. It isn't
> clear to me if there is an easy way to do this.
>
>

> import foo
> class Bar(foo.Foo):
>     def __init__(self):
>         pass

You need to call the base class constructor explicitly in Python. That
should do the trick.

    Stefan

-- 

      ...ich hab' noch einen Koffer in Berlin...

_______________________________________________
Cplusplus-sig mailing list
Cplusplus-sig@python.org
http://mail.python.org/mailman/listinfo/cplusplus-sig

Reply via email to