[PyKDE] How to do operators with SIP

Ewald R. de Wit erdewit at zonnet.nl
Sun Oct 28 11:57:52 GMT 2001


Hi,

Does anyone here know how to convert C++ operators like +, *, / etc
using SIP? Suppose I have a class called Matrix that has + defined for
it in C++, what would the SIP code look like?

Supposedly something like this:

------------------------
PyNumberMethods:
        __add__
%MemberCode

	... stuff ...

%End
------------------------

but I can't find out how to do the 'stuff' part.

Thanks very much,

-- 
  --  Ewald






More information about the PyQt mailing list