Hi Phil,

On Friday 14 May 2004 08:30, Phil Thompson wrote:
> The fix will be in tonight's SIP4 snapshot. Rebuild both PyQt and
> PyKDE.

Does that fix the closing problems of pyKHTMLPart.py, too:

TypeError: queryClose() takes exactly 1 argument (7 given)

When catching that arguments with *args, and printing them, my x86_64 
box spits out:

queryClose args: (<__main__.qt.QString object at 0x2a96223e30>, 
<__main__.qt.QString object at 0x2a96223fb0>, <__main__.qt.QString 
object at 0x2a96239050>, <__main__.qt.QString object at 
0x2a962390b0>, None, -1787777593)
queryExit args: (<__main__.qt.QString object at 0x2a96223e30>, 
<__main__.qt.QString object at 0x2a96223fb0>, <__main__.qt.QString 
object at 0x2a96239050>, <__main__.qt.QString object at 
0x2a962390b0>, None, 9390432)

This happens with:

qt-3.3.1
kde-3.2.1
sip-20040510
PyQt-20040509-sip4
PyKDE-3.11rc1-sip4

I would highly appreciate a patch to check against..

BTW: What happened to sipgen/gencode.c.patch (attached)? I haven't 
checked, if it's needed, but applies cleanly to sip 4 (20040510). 

Also, I found an unspecified patch in SuSEs build (sip.diff). Would 
you take a look into and check if it is really necessary? At least, 
it also apply cleanly and does no user visible harm, but I hate 
unspecified patches..

Pete
--- sipgen/gencode.c.orig	2004-03-17 19:19:16.000000000 +0000
+++ sipgen/gencode.c	2004-03-17 19:11:47.000000000 +0000
@@ -5255,6 +5255,11 @@
 		ad -> nrderefs = 0;
 	}
 
+	/* Array sizes are always integers. */
+
+	if (isArraySize(ad))
+		ad -> atype = int_type;
+
 	resetIsReference(ad);
 
 	if (ad -> defval == NULL)
--- siplib/sip.h
+++ siplib/sip.h	2004/03/20 21:55:49
@@ -18,7 +18,9 @@
 #define	_SIP_H
 
 #include <Python.h>
-
+#ifndef ANY
+#define ANY void
+#endif
 
 #ifdef __cplusplus
 extern "C" {

Reply via email to