Re: Using dbus.service.signal decorator
Simon McVittie <smcv-ZGY8ohtN/[email protected]>
| Newsgroups | gmane.comp.freedesktop.dbus |
|---|---|
| Message-ID | <[email protected]> |
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
_______________________________________________
dbus mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dbus