[PyQt] Exceptions in Python Implementations of Virtuals
Marcus Ottosson
konstruktion at gmail.com
Wed Oct 1 11:38:55 BST 2014
Sounds good to me, personally, but then I am a good boy and set
sys.excepthook in all my PyQt applications.
Learned something new. This is a very useful hook. :)
On 1 October 2014 11:29, Kovid Goyal <kovid at kovidgoyal.net> wrote:
> On Wed, Oct 01, 2014 at 09:31:26AM +0100, Phil Thompson wrote:
> > For all exceptions raised by virtual reimplementations (and slots
> connected
> > to signals) PyQt will invoke an error handler that will check if
> > sys.excepthook has been modified. If it has been modified then it does
> > nothing, otherwise it calls qFatal(). That should mean that "good"
> > applications continue to work without changes.
> >
> > It will be possible to specify (in the .sip file) that an individual
> virtual
> > must not raise an unhandled exception. This would be implemented by
> > explicitly calling abort() after calling the error handler.
> >
>
> Sounds good to me, personally, but then I am a good boy and set
> sys.excepthook in all my PyQt applications.
>
> I suspect a lot of people are going to find a lot of applications
> crashing unexpectedly on updating to 5.4 :)
>
> Kovid.
>
> --
> _____________________________________
>
> Dr. Kovid Goyal
> http://www.kovidgoyal.net
> http://calibre-ebook.com
> _____________________________________
>
> _______________________________________________
> PyQt mailing list PyQt at riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt
>
--
*Marcus Ottosson*
konstruktion at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20141001/a56f8b9a/attachment-0001.html>
More information about the PyQt
mailing list