[C++-sig] properties in python class that extend c++ base

Nat Goodspeed nat at lindenlab.com
Tue Oct 30 13:06:04 CET 2007


Neal Becker wrote:

> I have a c++ class with a property:
> 
> If I subclass this class in python:
> 
> class X (mod):
> 
> Then when python code attempts to access the property in the derived class,
> it fails:
> Boost.Python.ArgumentError: Python argument types in
>     None.None(pi4_modulator)
> did not match C++ signature:
>     None(modulator<non_offset_modbase, double> {lvalue})

   Does the Python subclass __init__() call the base-class __init__()?



More information about the Cplusplus-sig mailing list