Re: SIP issues.
Gerard Vermeulen <gerard.vermeulen <at> grenoble.cnrs.fr>
2004-12-05 16:24:13 GMT
On Sun, 5 Dec 2004 09:50:28 +0000
Phil Thompson <phil <at> riverbankcomputing.co.uk> wrote:
> On Tuesday 23 November 2004 8:51 pm, Gerard Vermeulen wrote:
> > 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,
>
> Virtual (and abstract) operators are now supported in the current SIP v4
> snapshot. Also operator() and the __call__ slot no longer require
> %MethodCode.
>
> > (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.
>
> You can now apply /PyName/ to classes, variables, enums and enum members.
>
> > (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).
>
> I couldn't reproduce this. I suspect that it had already been fixed in an
> earlier snapshot.
>
Thanks, I had seen some of those items already in your changelog.
I am in the business of trying my bindings for QwtPlot3D with your sip-snapshots (I tried
the 3 december sip) and noticed that enum fields are not accessible.
(Continue reading)