[C++-sig] Py++: ArgumentError during calling a function of base clas

Roman Yakovenko roman.yakovenko at gmail.com
Fri Jul 20 12:11:41 CEST 2007


On 7/20/07, Anand, Kumar <kanand at qualcomm.com> wrote:
> Hi,
>
> I have been getting errors like this: Any idea why this is happening and how
> to debug it further? 'evTest' is a class that definitely derives from
> OMEvent and the relationship has been exposed to Python as well:
>
> ArgumentError: Python argument types in
>
>     OMEvent.getSynchronous(evTest)
>
> did not match C++ signature:
>
>     getSynchronous(OMEvent {lvalue})

It seems that you pass, for some reason one argument, when the
function doesn't take any argument. If evTest is instance of OMEvent,
than try next code:
evTest.getSynchronous()


-- 
Roman Yakovenko
C++ Python language binding
http://www.language-binding.net/



More information about the Cplusplus-sig mailing list