[Tutor] sockets
Hugo González Monteverde
hugonz-lists at h-lab.net
Fri May 5 05:20:07 CEST 2006
Matt Richardson wrote:
> I need to send some data, 2 strings and a list, to a remote computer.
> After thinking about it some last night, it wouldn't be hard to just
> send it all as a string and then parse it on the receiving end.
Well if the excercise itself is not parsing a string, you can just use
pickle to serialize your objects. Look up the documentation for the
pickle module. You can transform many objects into byte streams and then
send them over the network.
Hugo
More information about the Tutor
mailing list