[PyQt] [SIP] operator * Error

Phil Thompson phil at riverbankcomputing.com
Wed Apr 20 18:18:12 BST 2011


On Wed, 20 Apr 2011 15:53:00 +0200, Kermit <stef.kermit at gmail.com> wrote:
> hi,
> 
> In Matrix33.sip, i've this line
> 
> Vec2 operator *  (const Vec2 &v, const Matrix33 &m);
> 
> and sip return me
> sip: Matrix33.sip:285: Global operators must be either numeric or
> comparison
> operators
> 
> 
> i don't understand, because it's work fine in Vec3.sip
> with
> Vec3 operator * (float a, const Vec3 &v);
> 
> the syntaxe is near ......

I need a test case...

One possibility is that the line number in the error message is not quite
right. You might want to look at the lines either side.

Phil


More information about the PyQt mailing list