clarity of concept
clarity of concept
Posted Nov 12, 2014 11:08 UTC (Wed) by ceplm (subscriber, #41334)In reply to: clarity of concept by nybble41
Parent article: Kdbus meets linux-kernel
Which is exactly what I was trying to say: WTF we need any interfaces here at all. Why cannot I have (adjusted to your exmaple):
> import dbus
>
> dbus.SessionBus().get_object('org.freedesktop.timedate1').SetTimezone('Europe/Berlin')
And of course, I would hope for some more Pythonic binding, so it would be more like.
> dbus.SessionBus.get_object('org.freedesktop.timedate1').SetTimezone('Europe/Berlin')
or perhaps
> dbus.SessionBus['org.freedesktop.timedate1'].SetTimezone('Europe/Berlin')
Why do I have to bother with interfaces at all?
Matěj
