dbus python - Returning empty lists

Eyal Ben David Eyal.BenDavid at expand.com
Wed May 16 07:29:32 PDT 2007


Hello all,

My setup:
  dbus service written in python (twisted + glib event loop)
  dbus client implemented in C++

When I send an empty list the DBUS implementation can't handle the empty
python list and emits an error.

My solution was to return None but then the caller must check the type
of the return value for each call.

How can I return an empty list without causing an exception?

Thanks
Eyal



More information about the dbus mailing list