[PyKDE] SIP: undocumented API for enums

Giovanni Bajo rasky at develer.com
Tue Mar 21 18:56:10 GMT 2006

Phil Thompson <phil at 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
> 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?
Giovanni Bajo

More information about the PyQt mailing list