txdbus icon indicating copy to clipboard operation
txdbus copied to clipboard

When some function returns struct, result is wrapped to extra list.

Open socketpair opened this issue 9 years ago • 0 comments

Suppose this:

...
Method('structMethod', arguments='(si)', returns='(is)')
...
def dbus_structMethod(self, arg):
        print 'swapping and returning swapped struct'
        return (arg[1], arg[0])

When I call it:

res = yield qwe.callRemote('structMethod', ('x', 69))

I expect [69, 'x'] in res, but actually I see [[69, 'x']]

socketpair avatar Nov 21 '14 21:11 socketpair