[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: Re: [PyKDE] SIP: undocumented API for enums
From: Phil Thompson <phil () riverbankcomputing ! co ! uk>
Date: 2006-03-21 20:56:22
Message-ID: 200603212056.22878.phil () riverbankcomputing ! co ! uk
[Download RAW message or body]
On Tuesday 21 March 2006 6:56 pm, Giovanni Bajo wrote:
> Phil Thompson <phil@riverbankcomputing.co.uk> wrote:
> >> I found out there is an undocumented "sipConvertFromNamedEnum". Should
> >> it be documented? Maybe there are other undocumented functions as well.
> >
> > There are lots of undocumented functions. They are undocumented because
>
> they
>
> > are not intended to be used - unless you can show why you need them.
>
> It was the only way I could find to wrap a function like this one:
>
> enum Foo { A, B, C };
> Foo* getFoos(int *size); //*size is the length of the returned array
>
> so that it returns a python list of instances of Foo. Is there another way?
sipBuildResult()
However I notice that I've used it myself in handwritten code in PyQt4, so
I'll document it.
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