pickle.dump (obj, conn)

dieter dieter at handshake.de
Fri Mar 14 03:27:27 EDT 2014


Pedro Izecksohn <izecksohn at yahoo.com> writes:

>   Shouldn't pickle.dump (obj, conn) raise an Exception if conn is a TCP connection that was closed by the remote host?

It is quite difficult to detect the closing of a TCP channel in
a reliable way. At least, you should not trust that you are reliably
informed about it.

The behavior is related to output to TCP connections, not directly
to "pickle". 




More information about the Python-list mailing list