<div dir="ltr">I had a similar question which includes some of these weird corner cases:<div><a href="https://www.riverbankcomputing.com/pipermail/pyqt/2015-August/036287.html">https://www.riverbankcomputing.com/pipermail/pyqt/2015-August/036287.html</a><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Sep 24, 2015 at 2:16 PM, 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">* Jonathan Mizrahi <<a href="mailto:mizrahi.jonathan@gmail.com">mizrahi.jonathan@gmail.com</a>> [2015-09-24 09:10:29 -0400]:<br>
<span class="">> When, exactly, is it necessary to use the @pyqtSlot decorator? Also, if a<br>
> signal calls a slot which has previously been garbage-collected, will that<br>
> cause problems in the program? My own simple tests seemed to show that<br>
> deleting slots, even pure Python slots which are not decorated, did not<br>
> cause a problem. But, are there cases where it does?<br>
<br>
</span>I can't exactly pinpoint it, but I had various funny corner cases<br>
(especially with PyQt versions < 5.4 or so) with segfaults,<br>
RuntimeErrors, etc. which went away when I decorated the slots - so I<br>
now always decorate them.<br>
<span class="HOEnZb"><font color="#888888"><br>
Florian<br>
<br>
--<br>
<a href="http://www.the-compiler.org" rel="noreferrer" target="_blank">http://www.the-compiler.org</a> | <a href="mailto:me@the-compiler.org">me@the-compiler.org</a> (Mail/XMPP)<br>
   GPG: 916E B0C8 FD55 A072 | <a href="http://the-compiler.org/pubkey.asc" rel="noreferrer" target="_blank">http://the-compiler.org/pubkey.asc</a><br>
         I love long mails! | <a href="http://email.is-not-s.ms/" rel="noreferrer" target="_blank">http://email.is-not-s.ms/</a><br>
</font></span><br>_______________________________________________<br>
PyQt mailing list    <a href="mailto:PyQt@riverbankcomputing.com">PyQt@riverbankcomputing.com</a><br>
<a href="https://www.riverbankcomputing.com/mailman/listinfo/pyqt" rel="noreferrer" target="_blank">https://www.riverbankcomputing.com/mailman/listinfo/pyqt</a><br></blockquote></div><br></div>