[PyQt] Segfault on exceptions in QNetworkAccessManager::createRequest

Kovid Goyal kovid at kovidgoyal.net
Fri Sep 26 05:01:48 BST 2014


On Thu, Sep 25, 2014 at 11:32:47PM +0100, Phil Thompson wrote:
> I would argue that the alternative of returning an arbitrary QNetworkReply
> instance (in this case) is worse because it is a bug that would be extremely
> difficult to detect and isolate. At least with a crash you know where it
> happened.

That's what the print is for. If you really want to crash then dont
segfault, at least use qFatal.

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/20140926/99b804f6/attachment.sig>


More information about the PyQt mailing list