[PyKDE] qstringlist.sip question

Phil Thompson phil at river-bank.demon.co.uk
Tue May 7 23:14:15 BST 2002


Bjorn Pettersen wrote:
> 
> I'm having some problems understanding the sipParseArgs call in
> qstringlist.sip __getitem__. From the extending and embedding manual I'm
> guessing the "i" format specifier signifies an integer argument. I can't
> see the idx variable being parsed to sipParseArgs however, so I'm
> wondering how it's being set?

Sounds like you are looking at an un-patched v3.1. Apply the patches
(which I have now removed from the website) or look at v3.2.

> I also couldn't find any reference to an "n" format specifier in the
> Python docs, so I'm guessing it's unique to SIP and stands for the
> 'self' argument?

The short answer is yes. There is a longer answer, but you'd be better
off looking at the parsePass1() and parsePass2() functions in siplib.c.

Phil




More information about the PyQt mailing list