[PyKDE] SIP issues.

Phil Thompson phil at riverbankcomputing.co.uk
Wed Nov 24 09:34:08 GMT 2004

> Hi,
> When trying to wrap QwtPlot3D (http://qwtplot3d.sourceforge.net), I
> encountered
> several issues with SIP:
> (1) Problems in getting an (abstract) virtual operator() working. Finally,
>     the following code works with SIP4 (thanks to the extra class
> PyFunction)
>     but not (yet) with SIP3:

I don't think virtual operators are supposed to work (that's a feature).
The parser should complain if you try (that's a bug). I'll look in more

> (2) Why does the PyName annotation only apply to functions?
>     class def { public: double yield; }; can only be wrapped if PyName
>     can also be used for class names and variable names.

Because it's never been asked for before. Should be easy to add (although
it won't be added to SIP v3).

> (3) Slots like __getitem__, __len__, and __setitem__ of a Python type
> defined
>     in a SIP file do not show with dir() (dir([]) shows those slots).

That's a bug - should be easy to fix.


More information about the PyQt mailing list