[Python-modules-team] Bug#824611: Nagstamon bug

Florian Bruhin me at the-compiler.org
Wed May 18 14:13:46 UTC 2016


This is actually a bug in Nagstamon, discovered by PyQt getting
stricter about correct @pyqtSlot signatures.

I'm guessing you don't see this with other platforms because you're
running Qt 5.6 but not PyQt 5.6 there, which is where this behaviour
was added:

https://www.riverbankcomputing.com/static/Downloads/PyQt5/ChangeLog
(d58baf1a1473, "Connecting to a decorated method will now fail without
a compatible signature.")

Nagstamon has a slot decorated with @pyqtSlot(str, bool) and connects
it to a str/QString signal:

https://github.com/HenriWahl/Nagstamon/blob/master/Nagstamon/QUI/__init__.py#L3925
https://github.com/HenriWahl/Nagstamon/blob/master/Nagstamon/QUI/__init__.py#L3904-L3905

This was silently ignored in PyQt < 5.6 and is an error with 5.6.

Nagstamon's authors should add a @pyqtSlot(str) decoration to that
slot and also fix other slots with the same issue as necessary.

Florian

-- 
http://www.the-compiler.org | me at 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/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/python-modules-team/attachments/20160518/b2c1d70c/attachment.sig>


More information about the Python-modules-team mailing list