[PyQt] Small bug in checkPointer in SIP
Kovid Goyal
kovid at kovidgoyal.net
Mon Jul 30 05:56:50 BST 2012
Hi Phil,
I noticed the other day that checkPointer() in siplib.c.in has
PyErr_Format(PyExc_RuntimeError, (sipWasCreated(sw) ?
"wrapped C/C++ object of %S has been deleted" :
"super-class __init__() of %S was never called"),
(PyObject *)sw);
which should have a lower case %s and you probably want something like
PyEval_GetFuncName((PyObject *)sw) or
PyObject_Repr((PyObject *)sw).
In the latter case, you'd have to check for a NULL return.
Kovid.
--
_____________________________________
Dr. Kovid Goyal
http://www.kovidgoyal.net
http://calibre-ebook.com
_____________________________________
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20120730/0ac0298e/attachment.pgp>
More information about the PyQt
mailing list