[PyQt] Segfault on exceptions in QNetworkAccessManager::createRequest

Kovid Goyal kovid at kovidgoyal.net
Thu Sep 25 18:34:19 BST 2014

On Thu, Sep 25, 2014 at 04:57:14PM +0100, Phil Thompson wrote:
> The value returned depends on the C++ return type. In this case, where a
> pointer is expected, the value is NULL.
> The way to handle this might be to add a new annotation /NotNone/ that says
> that NULL should not be returned to C++, or another annotation might specify
> the default value that is returned when an exception is raised. However in
> either case you won't be telling C++ that there is a problem and it will
> carry on regardless - maybe a crash is the best thing to do in this
> circumstance.

I'd say print "unhandled exception in method so-and-so" and continue
ignoring the exception. Debugging C++ level crashes is a PITA for most
python developers.



Dr. Kovid Goyal 
-------------- 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/20140925/c7ec04c3/attachment.sig>

More information about the PyQt mailing list