Developing a network protocol with Python
Lawrence Oluyede
raims at dot.com
Tue Dec 13 09:55:42 EST 2005
Il 2005-12-13, Laszlo Zsolt Nagy <gandalf at designaproduct.biz> 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"
More information about the Python-list
mailing list