[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: [PyQt] pyqtSlot decorator
From:       Iosif Spulber <iosif.spulber () gmail ! com>
Date:       2015-09-24 13:33:23
Message-ID: CAESsfmHwQtOMt=_1J0ebO+ysOQYy_kb+TQTf3vXG4pxjPyQJSg () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


I had a similar question which includes some of these weird corner cases:
https://www.riverbankcomputing.com/pipermail/pyqt/2015-August/036287.html


On Thu, Sep 24, 2015 at 2:16 PM, Florian Bruhin <me@the-compiler.org> wrote:

> * Jonathan Mizrahi <mizrahi.jonathan@gmail.com> [2015-09-24 09:10:29
> -0400]:
> > When, exactly, is it necessary to use the @pyqtSlot decorator? Also, if a
> > signal calls a slot which has previously been garbage-collected, will
> that
> > cause problems in the program? My own simple tests seemed to show that
> > deleting slots, even pure Python slots which are not decorated, did not
> > cause a problem. But, are there cases where it does?
>
> I can't exactly pinpoint it, but I had various funny corner cases
> (especially with PyQt versions < 5.4 or so) with segfaults,
> RuntimeErrors, etc. which went away when I decorated the slots - so I
> now always decorate them.
>
> Florian
>
> --
> http://www.the-compiler.org | me@the-compiler.org (Mail/XMPP)
>    GPG: 916E B0C8 FD55 A072 | http://the-compiler.org/pubkey.asc
>          I love long mails! | http://email.is-not-s.ms/
>
> _______________________________________________
> PyQt mailing list    PyQt@riverbankcomputing.com
> https://www.riverbankcomputing.com/mailman/listinfo/pyqt
>

[Attachment #5 (text/html)]

<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/0362 \
87.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">&lt;<a href="mailto:me@the-compiler.org" \
target="_blank">me@the-compiler.org</a>&gt;</span> wrote:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex">* Jonathan Mizrahi &lt;<a \
href="mailto:mizrahi.jonathan@gmail.com">mizrahi.jonathan@gmail.com</a>&gt; \
[2015-09-24 09:10:29 -0400]:<br> <span class="">&gt; When, exactly, is it necessary \
to use the @pyqtSlot decorator? Also, if a<br> &gt; signal calls a slot which has \
previously been garbage-collected, will that<br> &gt; cause problems in the program? \
My own simple tests seemed to show that<br> &gt; deleting slots, even pure Python \
slots which are not decorated, did not<br> &gt; cause a problem. But, are there cases \
where it does?<br> <br>
</span>I can&#39;t exactly pinpoint it, but I had various funny corner cases<br>
(especially with PyQt versions &lt; 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>



[Attachment #6 (text/plain)]

_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
https://www.riverbankcomputing.com/mailman/listinfo/pyqt

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic