[PyKDE] SIP: assigning None to public variable which is user defined type crashes SIP extensions.

Phil Thompson phil at riverbankcomputing.co.uk
Sat May 28 16:03:03 BST 2005


On Saturday 28 May 2005 2:44 pm, Gerard Vermeulen wrote:
> The SIP extension for
>
> class Double
> {
> public:
>     Double(double v=0): value(v) {}
> private:
>     double value;
> };
>
> class Ball
> {
> public:
>     Ball() {};
>     double weight;
>     Double radius;
> };
>
> crashes when doing
>
> b = Ball()
> b.radius = None
>
> because in this case the statement
>         sipCpp -> radius = *val;
> in var_Ball_radius() dereferences the null pointer
>
> See attachment.

It should be fixed in tonight's snapshot.

Thanks,
Phil




More information about the PyQt mailing list