You can use pickle.dumps<http://docs.python.org/library/pickle.html#pickle.dumps> and pickle.loads <http://docs.python.org/library/pickle.html#pickle.loads>
On 6 August 2012 19:17, Ramchandra Apte <maniandra...@gmail.com> wrote: > This is *absolutely* possible. > Did you know that IDLE uses this very method when run in sub-process mode! > > > On 6 August 2012 19:02, S.B <hyperboo...@gmail.com> wrote: > >> Hello friends >> >> Does anyone know if it's possible to pickle and un-pickle a file across a >> network socket. i.e: >> First host pickles a file object and writes the pickled file object to a >> client socket. >> Second host reads the pickled file object from the server socket and >> un-pickles it. >> >> Can anyone provide a simple code example of the client and server sides? >> >> Thanks >> >> -- >> http://mail.python.org/mailman/listinfo/python-list >> > >
-- http://mail.python.org/mailman/listinfo/python-list