Thanks for all the help, I tried sending the length and then the string and that appears to work, so I'll take a look at Pyro, too.<br><br><br>-Walker<br><br><div><span class="gmail_quote">On 7/18/07, <b class="gmail_sendername">
Nick Craig-Wood</b> <<a href="mailto:nick@craig-wood.com">nick@craig-wood.com</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;">
Jean-Paul Calderone <<a href="mailto:exarkun@divmod.com">exarkun@divmod.com</a>> wrote:<br>>  On Tue, 17 Jul 2007 14:57:16 -0700, Walker Lindley <<a href="mailto:brotherjenos@gmail.com">brotherjenos@gmail.com</a>
> wrote:<br>> >I'm working on a distributed computing program and need to send Python<br>> >objects over a TCP socket.<br>[snip]<br>> >Hopefully I'm doing something obviously wrong, but if anyone can help based
<br>> >on that description or if you need to see the source, please let me know<br>> >(it's GPL'd). Thank you so much for any help.<br>><br>>  The obvious thing you're doing wrong is using pickle over a network. ;)
<br>><br>>    <a href="http://jcalderone.livejournal.com/15864.html">http://jcalderone.livejournal.com/15864.html</a><br><br>I'd say the obvious thing being done wrong is re-inventing the wheel.<br>Use pyro instead...
<br><br>  <a href="http://pyro.sourceforge.net/">http://pyro.sourceforge.net/</a><br><br>Pyro does use pickle to serialise objects by default.  It can use XML<br>instead for an exploit free RPC at the cost of a bit of speed.
<br><br>  <a href="http://pyro.sourceforge.net/manual/9-security.html#pickle">http://pyro.sourceforge.net/manual/9-security.html#pickle</a><br><br>--<br>Nick Craig-Wood <<a href="mailto:nick@craig-wood.com">nick@craig-wood.com
</a>> -- <a href="http://www.craig-wood.com/nick">http://www.craig-wood.com/nick</a><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.