You can use <a href="http://docs.python.org/library/pickle.html#pickle.dumps">pickle.dumps</a> and <a href="http://docs.python.org/library/pickle.html#pickle.loads">pickle.loads</a><br><br><div class="gmail_quote">On 6 August 2012 19:17, Ramchandra Apte <span dir="ltr"><<a href="mailto:maniandram01@gmail.com" target="_blank">maniandram01@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">This is *absolutely* possible.<div>Did you know that IDLE uses this very method when run in sub-process mode!<div><div class="h5">
<br><br><div class="gmail_quote">On 6 August 2012 19:02, S.B <span dir="ltr"><<a href="mailto:hyperboogie@gmail.com" target="_blank">hyperboogie@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello friends<br>
<br>
Does anyone know if it's possible to pickle and un-pickle a file across a network socket. i.e:<br>
First host pickles a file object and writes the pickled file object to a client socket.<br>
Second host reads the pickled file object from the server socket and un-pickles it.<br>
<br>
Can anyone provide a simple code example of the client and server sides?<br>
<br>
Thanks<br>
<span><font color="#888888"><br>
--<br>
<a href="http://mail.python.org/mailman/listinfo/python-list" target="_blank">http://mail.python.org/mailman/listinfo/python-list</a><br>
</font></span></blockquote></div><br></div></div></div>
</blockquote></div><br>