[Twisted-Python] XML-RPC: Why encapsulate in a list?

Steve Freitas sflist at ihonk.com
Sat Aug 23 22:57:07 MDT 2003


Hi all,

If I try this code:

def xmlrpc_blah(self):
    return { 'x': "yadda" }

What I get back through Python's xmlrpclib client is...

[{'x':"yadda"}]

Why does my dictionary (ergo struct) get encapsulated in a list (ergo
array)? What should I do if I just want to return a struct?

Thanks!

Steve Freitas





More information about the Twisted-Python mailing list