[PyQt] Re: SIP feature request (__rmul__)

Jim Crowell jaclists at mailbolt.com
Mon Feb 4 17:13:23 GMT 2008


> I've had second thoughts about this.  The reflected methods don't have
> C++ 
> equivalents so it's not obvious what they should do - and you don't need
> them 
> anyway.
> 
> I don't know if Float is a real class, or you mean the C++ float or
> double. 
> I'll assume the latter.
> 
> I assume that the C++ library has...
> 
>     MyVectorClass MyVectorClass::operator*(double);
> 
> If the C++ library supports the reflected version then I assume it also
> has...
> 
>     MyVectorClass operator*(double, const MyVectorClass &);
> 
> ...in which case you just wrap it as normal.


Oops, hadn't occurred to me to try that.

Thanks,
-Jim



More information about the PyQt mailing list