[PyKDE] qstringlist.sip question

Bjorn Pettersen BPettersen at narex.com
Tue May 7 23:45:00 BST 2002


> From: Phil Thompson [mailto:phil at river-bank.demon.co.uk] 
> 
> 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.

Thanks, now I think I understand it...

> > 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.

I did -- cute :-)

-- bjorn




More information about the PyQt mailing list