[PyQt] sip.dump, but getting a string

Florian Bruhin me at the-compiler.org
Wed Oct 29 06:36:20 GMT 2014


I wanted to add some debugging info to debug the issue in my last
mail[1], and I thought maybe it's a good idea to add some sip.dump
output to the debug log before disconnecting the signals; maybe I'll
see something there.

However it seems sip.dump writes to stdout directly rather than
returning a string. Is there some way I could get the same information
as string, to log to my debug logger, to get that info in a crash
report?

It seems replacing sys.stdout with a io.StringIO does not work - I
guess sip.dump is not implemented in Python.

Florian

[1] http://www.riverbankcomputing.com/pipermail/pyqt/2014-October/035026.html

-- 
http://www.the-compiler.org | me at the-compiler.org (Mail/XMPP)
             GPG 0xFD55A072 | http://the-compiler.org/pubkey.asc
         I love long mails! | http://email.is-not-s.ms/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20141029/343a65c3/attachment-0001.sig>


More information about the PyQt mailing list