Sending Dictionary via Network

Chris Mellon arkanes at gmail.com
Wed Oct 25 10:04:16 EDT 2006


On 24 Oct 2006 16:56:43 -0700, Simon Forman <rogue_pedro at yahoo.com> wrote:
>
> mumebuhi wrote:
> > Thank you very much for the reply.
> >
> > Can pickle work directly with socket? The way I am doing right now is
> > to pickle the object to a file then send the file content through the
> > socket.
>
> Pickle aso has dumps() and loads() to work with strings rather than
> files.


I would recommend against using pickle if you're going to push it over
a network - there are signifigant dangers in unpickling anything
untrusted.



More information about the Python-list mailing list