Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #68350

Re: pickle.dump (obj, conn)

References <1394750199.11584.YahooMailNeo@web140104.mail.bf1.yahoo.com>
From Ian Kelly <ian.g.kelly@gmail.com>
Date 2014-03-13 19:26 -0600
Subject Re: pickle.dump (obj, conn)
Newsgroups comp.lang.python
Message-ID <mailman.8141.1394760459.18130.python-list@python.org> (permalink)

Show all headers | View raw


On Thu, Mar 13, 2014 at 4:36 PM, Pedro Izecksohn <izecksohn@yahoo.com> wrote:
>   Shouldn't pickle.dump (obj, conn) raise an Exception if conn is a TCP
> connection that was closed by the remote host?

Can you be more specific about what you are doing, what you expect the
result to be, and what the actual result is?

http://www.catb.org/esr/faqs/smart-questions.html#beprecise

If I try using pickle.dump with a socket, I do get an exception, but
perhaps not the one you are looking for:

>>> pickle.dump([1,2,3], sock)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: file must have a 'write' attribute

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: pickle.dump (obj, conn) Ian Kelly <ian.g.kelly@gmail.com> - 2014-03-13 19:26 -0600

csiph-web