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


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

Re: Help: pickle module unable to load "rb" mode files in linux

Started byPeter Otten <__peter__@web.de>
First post2013-04-02 17:20 +0200
Last post2013-04-02 17:20 +0200
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: Help: pickle module unable to load "rb" mode files in linux Peter Otten <__peter__@web.de> - 2013-04-02 17:20 +0200

#42576 — Re: Help: pickle module unable to load "rb" mode files in linux

FromPeter Otten <__peter__@web.de>
Date2013-04-02 17:20 +0200
SubjectRe: Help: pickle module unable to load "rb" mode files in linux
Message-ID<mailman.6.1364915977.3114.python-list@python.org>
Surya Kasturi wrote:

> Hi, hope you can help me on it..
> 
> with open(pickle_f, 'r') as fhand:
>         obj = pickle.load(fhand)
> 
> 
> This works on linux but not in windows until  I use "rb" mode while
> creating file object. Surprisingly, the "rb" mode is not working on
> Linux.. raising EOFError.
> 
> Why is this happening?

I don't know.

Please give a complete self-contained example that uses "wb" to write the 
file and "rb" to read it, and that fails on Linux. Don't forget to tell us 
the version of Python you used to run that script.

[toc] | [standalone]


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


csiph-web