Converting a tuple to an argument list for a method?

Gabriel Ambuehl gabriel_ambuehl at buz.ch
Thu Oct 18 05:47:54 EDT 2001


-----BEGIN PGP SIGNED MESSAGE-----

Hello,
I'm messing with the XMLRPC implementation from PythonWare which
makes the arguments to the request available as tuple but the
method's
I want to call expect a normal argument list as their parameters.

So xmlprc delivers:
xmlrpcparam=(param1, param2, param....)
which won't work for
method(param1, param2, param3)
because the tuple only counts as one argument. So is there a
possibility to use the tuple (which hasn't got a fixed length cause
different methods on the server need different numbers of arguments,
else it would be easy to just do
method(xmlrpcparam[0], xmlrpcmethod[1])) to form an argument list for
the methods on the server?

Currently less important: is there a way to use named arguments with
xmlrpc so that the server could decide whether the format of the
clients request is valid?

Any comments would be greatly appreciated.




Best regards,
 Gabriel


-----BEGIN PGP SIGNATURE-----
Version: PGP 6.5i

iQEVAwUBO86XPcZa2WpymlDxAQGUeQgAkOu3OT1zf1dYQLXap9JYBS2ATb3GEnya
ZR+dai1Jr0UqqXmj1Iwo05x+1EVfGMBA5P75QfIu5xDkyevnPmOIXIwkqUPSFMjO
Sl1FAN5fphzOXOnsRTvrnm3Q52kCe/Z2uBCu+r5nV799erj0F/ftnWFSRhUm95Y8
YRypkiUtK76q/yGMQWJST3w9zrOffzgcgACzg0bNW3V7vr3c0CYcMPD4vuO79CXn
I7pUDQDdqZzMEfQwIWnMWToWwvZuAd8NoNmKnfzaJj2mnv7PFQXR24UPpdpLkHho
rAQLU1eaSFzNvZz+nfEXzqVscP4rZ39nVbYwsoe2R6g8e+ZvrbvwFw==
=5MhN
-----END PGP SIGNATURE-----





More information about the Python-list mailing list