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


Groups > comp.lang.python > #68350 > unrolled thread

Re: pickle.dump (obj, conn)

Started byIan Kelly <ian.g.kelly@gmail.com>
First post2014-03-13 19:26 -0600
Last post2014-03-13 19:26 -0600
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

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

#68350 — Re: pickle.dump (obj, conn)

FromIan Kelly <ian.g.kelly@gmail.com>
Date2014-03-13 19:26 -0600
SubjectRe: pickle.dump (obj, conn)
Message-ID<mailman.8141.1394760459.18130.python-list@python.org>
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

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web