Bug 10174: When guessing return signature for a tuple that is not a Struct, produce a multiple-argument reply rather than a single Struct - Thomas Wisniewski <wisniewskit@yahoo.ca> - 3/3/2007 Back to Bug | Your Reviews | Help
Attachment 9721: Proposed patch - Simon McVittie <smcv@collabora.com> - 4/24/2007 (View )

Show Quick Help

From: Simon McVittie <simon.mcvittie@collabora.co.uk>
Date: Tue, 24 Apr 2007 17:45:03 +0100
Subject: [PATCH] Fix fd.o #10174: make it possible to return multiple values with no signature.
More specifically: when a service method with no signature synchronously
returns a tuple that is not a Struct, interpret it as a multi-valued return,
rather than as a structure.
This is a common Python idiom, and returning a struct makes little sense
anyway when D-Bus lets you return multiple values.
Returned lists are still interpreted as arrays - returning an array is
entirely sensible, and indeed likely to be common.
Async service methods are unaffected (there is no ambiguity), and it's still
possible to return a structure by returning a dbus.Struct with appropriate
contents.
https://bugs.freedesktop.org/show_bug.cgi?id=10174
<Overall Comment>
Powered by Splinter

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.