Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!us.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!newsfeed.x-privat.org!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.031 X-Spam-Evidence: '*H*': 0.94; '*S*': 0.00; 'obj': 0.09; 'subject:files': 0.09; 'subject:module': 0.09; 'subject:Help': 0.11; 'windows': 0.15; '\xc2\xa0i': 0.16; 'sender:addr:gmail.com': 0.17; 'creating': 0.23; 'mode': 0.30; 'message- id:@mail.gmail.com': 0.30; 'object.': 0.31; 'file': 0.32; 'linux': 0.33; 'but': 0.35; 'received:google.com': 0.35; 'raising': 0.36; 'hi,': 0.36; 'skip:& 10': 0.38; 'to:addr:python-list': 0.38; 'subject:" ': 0.39; 'to:addr:python.org': 0.39; 'hope': 0.61; 'happening?': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:mime-version:sender:from:date:x-google-sender-auth :message-id:subject:to:content-type; bh=Hj5Kp4TFGLepJ5KYCSGY82syy9A0rQqntt8X1G/6vdY=; b=yd4Wzi+F2qWu+gZXGUl+/NqEJZ+yLjy4zsPlhTsjkpy16ZFTUe3agIwVgdYxf7ODAY Sv0fRDTUPF3VaaJcEKyw98sniVEXGUExscvBO2iHz6+ZSYtOiXTEGXTiVwy8ngFvGZ1n aqUGnMiKDK2F8/xKtHoiFA9tnGjgN2VEX3ghVzJFYaf0xzxUE07uYjD5BnEOz6FY9Cs3 4mgc6kNq6TOqR6mFXlC4lKyhgdrOpjjhg1XMBCQfmMeST4iXmy0XbHJ9hYBJJsswLgHV 5goXUK3R3+b10U7RHCd6zNRLQ2H/vR5HlDG67lCa5DielA0BCFEBiWwflZerhFeYEkV2 NCpw== X-Received: by 10.49.15.198 with SMTP id z6mr17965818qec.6.1364914485331; Tue, 02 Apr 2013 07:54:45 -0700 (PDT) MIME-Version: 1.0 Sender: kasturisurya@gmail.com From: Surya Kasturi Date: Tue, 2 Apr 2013 20:24:25 +0530 X-Google-Sender-Auth: 5bw7ClREC_c7H1jpCHt2Omuuj8Q Subject: Help: pickle module unable to load "rb" mode files in linux To: python-list@python.org Content-Type: multipart/alternative; boundary=047d7bd6ae800c18e304d961eb13 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 29 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1364914494 news.xs4all.nl 6932 [2001:888:2000:d::a6]:49707 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:42570 --047d7bd6ae800c18e304d961eb13 Content-Type: text/plain; charset=UTF-8 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? --047d7bd6ae800c18e304d961eb13 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi, hope you can help me on it..

w= ith open(pickle_f, 'r') as fhand:
=C2=A0 =C2=A0 =C2=A0 = =C2=A0 obj =3D pickle.load(fhand)


=
This works on linux but not in windows until =C2=A0I use "r= b" mode while creating file object. Surprisingly, the "rb" m= ode is not working on Linux.. raising EOFError.

Why is this happening?
--047d7bd6ae800c18e304d961eb13--