Using dbus.service.signal decorator

Simon McVittie smcv at collabora.com
Mon Jun 19 10:01:51 UTC 2017


On Fri, 16 Jun 2017 at 23:37:57 +0200, Bogdan Lotko wrote:
[I wrote:]
>>    I don't *think* you need the explicitly-typed dbus.Array
> 
> I've noticed (an error message :)), it is necessary to use the explicitly-typed
> dbus.Array in case that the array can be empty (e.g. the message is a command
> with/without parameters placed in an array) . 

Ah, right. Yes, any time an array can be empty, you definitely need to make
its type explicit, because dbus-python has no hope of guessing from the
contents what the type should be if there are no contents.

    S


More information about the dbus mailing list