<div dir="ltr"><div class="markdown-here-wrapper" style><blockquote style="margin:1.2em 0px;border-left-width:4px;border-left-style:solid;border-left-color:rgb(221,221,221);padding:0px 1em;color:rgb(119,119,119);quotes:none">
<p style="margin:1.2em 0px!important">that’s just asking for trouble ;)</p>
</blockquote>
<p style="margin:1.2em 0px!important">Could you expand on this? Also, I thought this was to just to get some output from stdout into a file, did you mean for this to go into production?</p>
<p style="margin:1.2em 0px!important">Still, a top-level wrapper isn’t necessarily a bad thing. There are things you could catch here that couldn’t normally be caught from within a running instance of Python. Such as a “Oops, it crashed”-style message with proper error reporting and notification via email and such.</p>
<div title="MDH:Jmd0O8KgPHNwYW4gc3R5bGU9ImZvbnQtZmFtaWx5OiBhcmlhbCwgc2Fucy1zZXJpZjsgZm9udC1z
aXplOiAxM3B4OyI+dGhhdCdzJm5ic3A7PC9zcGFuPjxzcGFuIHN0eWxlPSJmb250LWZhbWlseTog
YXJpYWwsIHNhbnMtc2VyaWY7IGZvbnQtc2l6ZTogMTNweDsiPmp1c3QgYXNraW5nIGZvciB0cm91
YmxlIDspPC9zcGFuPjxkaXY+PGZvbnQgZmFjZT0iYXJpYWwsIHNhbnMtc2VyaWYiPjxicj48L2Zv
bnQ+PC9kaXY+PGRpdj48Zm9udCBmYWNlPSJhcmlhbCwgc2Fucy1zZXJpZiI+Q291bGQgeW91IGV4
cGFuZCBvbiB0aGlzPyBBbHNvLCBJIHRob3VnaHQgdGhpcyB3YXMgdG8ganVzdCB0byBnZXQgc29t
ZSBvdXRwdXQgZnJvbSBzdGRvdXQgaW50byBhIGZpbGUsIGRpZCB5b3UgbWVhbiBmb3IgdGhpcyB0
byBnbyBpbnRvIHByb2R1Y3Rpb24/PC9mb250PjwvZGl2PjxkaXY+PGZvbnQgZmFjZT0iYXJpYWws
IHNhbnMtc2VyaWYiPjxicj48L2ZvbnQ+PC9kaXY+PGRpdj48Zm9udCBmYWNlPSJhcmlhbCwgc2Fu
cy1zZXJpZiI+U3RpbGwsIGEgdG9wLWxldmVsIHdyYXBwZXIgaXNuJ3QgbmVjZXNzYXJpbHkgYSBi
YWQgdGhpbmcuIFRoZXJlIGFyZSB0aGluZ3MgeW91IGNvdWxkIGNhdGNoIGhlcmUgdGhhdCBjb3Vs
ZG4ndCBub3JtYWxseSBiZSBjYXVnaHQgZnJvbSB3aXRoaW4gYSBydW5uaW5nIGluc3RhbmNlIG9m
IFB5dGhvbi4gU3VjaCBhcyBhICJPb3BzLCBpdCBjcmFzaGVkIi1zdHlsZSBtZXNzYWdlIHdpdGgg
cHJvcGVyIGVycm9yIHJlcG9ydGluZyBhbmQgbm90aWZpY2F0aW9uIHZpYSBlbWFpbCBhbmQgc3Vj
aC48YnI+PC9mb250PjxkaXY+PHNwYW4gc3R5bGU9ImZvbnQtZmFtaWx5OiBhcmlhbCwgc2Fucy1z
ZXJpZjsgZm9udC1zaXplOiAxM3B4OyI+PGJyPjwvc3Bhbj48L2Rpdj48L2Rpdj4=" style="height:0;font-size:0em;padding:0;margin:0">​</div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 29 October 2014 07:31, Florian Bruhin <span dir="ltr"><<a href="mailto:me@the-compiler.org" target="_blank">me@the-compiler.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hey Marcus,<br>
<br>
* Marcus Ottosson <<a href="mailto:konstruktion@gmail.com">konstruktion@gmail.com</a>> [2014-10-29 07:02:58 +0000]:<br>
<span class="">> How about running it via subprocess, pipe stdout and read it from there?<br>
> That way, you could let sip.dump print to the console and pick it<br>
> regardless of its origins.<br>
<br>
</span>That's a creative idea! :)<br>
<br>
But seeing this issue happens very seldom, I really don't want to have<br>
a wrapper running my real tool via subprocess for all users, that's<br>
just asking for trouble ;)<br>
<span class="HOEnZb"><font color="#888888"><br>
Florian<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
--<br>
<a href="http://www.the-compiler.org" target="_blank">http://www.the-compiler.org</a> | <a href="mailto:me@the-compiler.org">me@the-compiler.org</a> (Mail/XMPP)<br>
             GPG 0xFD55A072 | <a href="http://the-compiler.org/pubkey.asc" target="_blank">http://the-compiler.org/pubkey.asc</a><br>
         I love long mails! | <a href="http://email.is-not-s.ms/" target="_blank">http://email.is-not-s.ms/</a><br>
</div></div><br>_______________________________________________<br>
PyQt mailing list    <a href="mailto:PyQt@riverbankcomputing.com">PyQt@riverbankcomputing.com</a><br>
<a href="http://www.riverbankcomputing.com/mailman/listinfo/pyqt" target="_blank">http://www.riverbankcomputing.com/mailman/listinfo/pyqt</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr"><font size="1"><b>Marcus Ottosson</b><br><a href="mailto:konstruktion@gmail.com" target="_blank">konstruktion@gmail.com</a></font><font size="1"><br></font></div>
</div>