[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: Re: [PyQt] Small bug in checkPointer in SIP
From: Phil Thompson <phil () riverbankcomputing ! com>
Date: 2012-07-30 17:00:20
Message-ID: 5ba233c73472163605043c922c591242 () localhost
[Download RAW message or body]
On Mon, 30 Jul 2012 10:26:50 +0530, Kovid Goyal <kovid@kovidgoyal.net>
wrote:
> 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.
It's been fixed in the current snapshot.
Phil
_______________________________________________
PyQt mailing list PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic