Best method for inter process communications

Hendrik van Rooyen mail at microcorp.co.za
Wed Jul 18 02:43:05 EDT 2007


"Marc 'BlackJack' Rintsch" <bj_666 at ....net> wrote:
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.  :-)

LOL - so  one could say it was a bit of an exaggeration...

Thanks - Hendrik




More information about the Python-list mailing list