Excerpts from Simon Schampijer's message of Thu Apr 28 21:18:31 +0200 2011: > On 04/15/2011 06:47 PM, Sascha Silbe wrote: > [...] > > Given that "filt" is non-empty, do we really need the explicit > > conversions? I.e. would the following work?
> No, we really need the explicit conversion:
[error message that happens otherwise]
The reason for this was recently mentioned [1] on the dbus mailing list:
>>> Because dbus-python guesses the dictionary type by looking at the first
>>> key-value pair which is 's' and 's' in this case.
>>> You can use dbus.Dictionary({'name': 'test', 'id': 10}, signature='sv')
>>> to explicitly tell it what type the dictionary should have.
I already gave my Ack and can push the patch for you if you want.
Sascha
[1] http://permalink.gmane.org/gmane.comp.freedesktop.dbus/13936
--
http://sascha.silbe.org/
http://www.infra-silbe.de/
signature.asc
Description: PGP signature
_______________________________________________ Sugar-devel mailing list [email protected] http://lists.sugarlabs.org/listinfo/sugar-devel

