how to transfer a python object to other computer?

Daniel Nogradi nogradi at gmail.com
Thu Apr 20 05:27:08 EDT 2006


>     Hey, all.Now I wanna to transfer a object to other computer, Maybe I
> could serialize the object to a file by pickle moudle, then send the file
> and get it from the file.But I think the efficency is awful, because the
> disk io is very slow.
>      Someone could do me a favor to give me some idea?
>
> Best Wish.

You will send the pickle file over a network, won't you? Then that
will be much slower than disk i/o anyway so no need to worry about
that. Pickling/unpickling by the cPickle module is fast and sending
the pickle file is probably the best way to send python objects.



More information about the Python-list mailing list