Il 2005-12-13, Laszlo Zsolt Nagy <[EMAIL PROTECTED]> ha scritto: > I need to send Python objects too. They are too elaborate to convert > them to XML. (They are using cyclic weak references and other Python > specific stuff.) I can be sure that on both sides, there are Python > programs. Is there any advantage in using XML if I already need to send > Python objects? Those objects cannot be represented in XML, unless > pickled into a CDATA string.
If you have to send Python objects over the wire the best way is to have twisted on both ends and use twisted's PerspectiveBroker, see: http://twistedmatrix.com/projects/core/documentation/howto/pb-intro.html -- Lawrence - http://www.oluyede.org/blog "Anyone can freely use whatever he wants but the light at the end of the tunnel for most of his problems is Python" -- http://mail.python.org/mailman/listinfo/python-list