tuples and lists in XML-RPC

Michael Lauer mickey at aldebaran.tm.informatik.uni-frankfurt.de
Tue Jun 12 04:24:53 EDT 2001


Good morning,

I'm currently working on an OO wrapper for the great xmlrpclib
from PythonWare, which allows me to instantiate classes and call
methods transparently through client side proxy classes
(Noone ever did this or at least I haven't found something - should
I post the code to the group if I'm ready with the first version?)

All seems to work great except one thing... Python tuples are
converted to Python lists. I understand that this is a limitation of
the xmlrpc specification which does not differentiate sequence types,
but for a transparent class proxy communicating with a remote class
which does not now about this, umm... feature, it is questionable behaviour.
It really can make a difference returning a tuple or a list :)

Currently I only see the option of extending XML-RPC to differentiate
Python tuples and Python lists - and beeing no longer compatible to other
XML-RPC servers which is very bad and a therefore no-no.

Do you see other options or workarounds ?

Yours,
-- 
:M:
--
|----------------------------------------------------------------------------|
| Dipl.-Inf. Michael 'Mickey' Lauer    mickey at tm.informatik.uni-frankfurt.de |
|   Raum 10b - ++49 69 798 28358        Fachbereich Informatik und Biologie  |
|----------------------------------------------------------------------------|



More information about the Python-list mailing list