Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #42570
| From | Surya Kasturi <suryak@ieee.org> |
|---|---|
| Date | 2013-04-02 20:24 +0530 |
| Subject | Help: pickle module unable to load "rb" mode files in linux |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.1.1364914494.3114.python-list@python.org> (permalink) |
[Multipart message — attachments visible in raw view] - view raw
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?
Back to comp.lang.python | Previous | Next — Next in thread | Find similar | Unroll thread
Help: pickle module unable to load "rb" mode files in linux Surya Kasturi <suryak@ieee.org> - 2013-04-02 20:24 +0530 Re: Help: pickle module unable to load "rb" mode files in linux 88888 Dihedral <dihedral88888@googlemail.com> - 2013-04-07 06:43 -0700 Re: Help: pickle module unable to load "rb" mode files in linux 88888 Dihedral <dihedral88888@googlemail.com> - 2013-04-07 06:43 -0700
csiph-web