Amaury Forgeot d'Arc <amaur...@gmail.com> added the comment: But what if I want to pass a tuple through xmlrpc? The function in the test case: + def execute(server, methodname, *args): + r = getattr(server, methodname)(args) # params become a tuple + return r looks wrong to me. It has the effect to modify the nature of the arguments. If I write instead: + def execute(server, methodname, *args): + r = getattr(server, methodname)(*args) + return r (note the additional '*') the function may receive several arguments, and will call the server method with several arguments as well. Tuple unpacking occurs where tuple packing was made. The library does not need to be changed.
---------- nosy: +amaury.forgeotdarc resolution: -> invalid status: open -> pending _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue7977> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com