[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: [PyKDE] SIP issues.
From:       "Phil Thompson" <phil () riverbankcomputing ! co ! uk>
Date:       2004-11-24 9:34:08
Message-ID: 8649.82.68.80.137.1101288848.squirrel () 82 ! 68 ! 80 ! 137
[Download RAW message or body]

> 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
detail.

> (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.

Phil

_______________________________________________
PyKDE mailing list    PyKDE@mats.imk.fraunhofer.de
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic