[PyQt] Exceptions in Python Implementations of Virtuals
Kovid Goyal
kovid at kovidgoyal.net
Wed Oct 1 11:29:15 BST 2014
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
_____________________________________
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20141001/0ba766ea/attachment.sig>
More information about the PyQt
mailing list