Best method for inter process communications

Marc 'BlackJack' Rintsch bj_666 at gmx.net
Tue Jul 17 10:18:10 CEST 2007


On Tue, 17 Jul 2007 08:08:45 +0200, Hendrik van Rooyen wrote:

> I heard a rumour once that a "hello world" string takes something like
> 10k bytes in XMLRPC - have never bothered to find out if its BS...

Just try it out:

In [8]: import xmlrpclib

In [9]: a = xmlrpclib.dumps(('hello world',))

In [10]: len(a)
Out[10]: 80

In [11]: print a
<params>
<param>
<value><string>hello world</string></value>
</param>
</params>

Even with some additional boilerplate like XML declaration etc. there is
still a little bit room until 10 kB are reached.  :-)

Ciao,
	Marc 'BlackJack' Rintsch



More information about the Python-list mailing list