unpickling a stream
msolem at linuxmail.org
msolem at linuxmail.org
Tue May 26 15:25:22 EDT 2009
Hello,
I want to send a stream of pickled objects over a socket. Is there a
standard way of ensuring that only complete objects are unpickled on
the receiving side.
client pseudo code:
loop forever:
receive some bytes on the socket
if we have received a complete pickled object: <== How is this
done?
unpickle the object
This isn't for a project, just trying to learn some more about the
pickle module.
Mike
More information about the Python-list
mailing list