It doesn't interface well because the string you end up with often doesn't fit into a single packet. Therefore you have to add a layer of protocol on top of it that allows you to check to make sure you have the whole string received before trying to unpickle it. This the case even if you use socket's makefile() method to make a file descriptor.
<br><br><br>-Walker<br><br><div><span class="gmail_quote">On 20 Jul 2007 14:00:06 +0100 (BST), <b class="gmail_sendername">Sion Arrowsmith</b> <<a href="mailto:siona@chiark.greenend.org.uk">siona@chiark.greenend.org.uk
</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">>Since pickle has problems<br>>-- does not interface well with networking
<br><br>In what way does pickle not interface well with networking? Other<br>than, possibly, security issues which you list as a separate problem<br>with it. I've taken a working XML-RPC system and replaced the XML with
<br>pickle, and had no issues. Other than an order of magnitude<br>performance gain. (OK, a cow-orker allegedly and unreproducibly found<br>that cPickle was leaking memory, and as the performance gains weren't<br>so great with the pure Python implementation, it got shelved and we
<br>stuck with XML-RPC.)<br><br>--<br>\S -- <a href="mailto:siona@chiark.greenend.org.uk">siona@chiark.greenend.org.uk</a> -- <a href="http://www.chaos.org.uk/~sion/">http://www.chaos.org.uk/~sion/</a><br>   "Frankly I have no feelings towards penguins one way or the other"
<br>        -- Arthur C. Clarke<br>   her nu becomež se bera eadward ofdun hlęddre heafdes bęce bump bump bump<br><br>--<br><a href="http://mail.python.org/mailman/listinfo/python-list">http://mail.python.org/mailman/listinfo/python-list
</a><br></blockquote></div><br><br clear="all"><br>-- <br>This e-mail is licensed under the Creative Commons Attribution-NoDerivs 2.5 License. To view a copy of this license, visit <a href="http://creativecommons.org/licenses/by-nd/2.5/">
http://creativecommons.org/licenses/by-nd/2.5/</a> or send a letter to Creative Commons, 543 Howard Street, 5th Floor, San Francisco, California, 94105, USA.