Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!ecngs!feeder2.ecngs.de!newsfeed.freenet.ag!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.011 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'binary': 0.05; 'subject:files': 0.09; 'cc:addr:python-list': 0.10; '"rb"': 0.16; 'between.': 0.16; 'csv': 0.16; 'causing': 0.20; 'this:': 0.23; 'to:2**1': 0.23; 'cc:2**1': 0.24; 'cc:addr:python.org': 0.25; 'header:In-Reply-To:1': 0.25; 'wonder': 0.27; 'first.': 0.27; 'message-id:@mail.gmail.com': 0.27; 'subject:list': 0.28; 'mode': 0.30; 'print': 0.32; 'received:google.com': 0.34; 'text': 0.34; 'thanks': 0.34; 'list': 0.35; 'received:209.85': 0.35; 'received:209': 0.37; 'subject:: ': 0.38; 'files': 0.38; 'instead': 0.39; 'header:Received:5': 0.40 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=TIoQbLRyzwGrW6ltyiOuLElmmCoLm6pi+WxX5pTPBHo=; b=Gd2fw9YWwdMZYJyYFx2twSGq4ZCbJj5H8PCdodMhFmM4WeH21Med1iR5clqWMhwGVW Szr3IyhW7cx3enrCp8a91CCNtj1OhKWAy0mPT8VltcjjugX9AWhQldtuJip4oOAR4EMm +tDnDipVHunXsbKYukIJD7S1bdirP0sVu49TE7U7andTSG6b3DHq50zr9pZykfwIPKl0 0htPs+3uSebG88ao98mrbTI85gFGkOCy+Nk1BSV4IQX6B/JDb1mNB/oSnS0v0fZlCaGX Rmqysg7+buWyZcdXQyiGmBw+mhMwtHrZf/9ljvXmmsnAjbTUoebNh5rn7H7c90PbjRSF Cy+g== MIME-Version: 1.0 In-Reply-To: <5B80DD153D7D744689F57F4FB69AF47418040FEC@SCACMX008.exchad.jpmchase.net> References: <50B3E865.9070700@davea.name> <50B43246.2010902@davea.name> <5B80DD153D7D744689F57F4FB69AF47418040FEC@SCACMX008.exchad.jpmchase.net> Date: Fri, 30 Nov 2012 10:26:51 +0100 Subject: Re: Compare list entry from csv files From: Anatoli Hristov To: "Prasad, Ramit" Content-Type: text/plain; charset=UTF-8 Cc: "python-list@python.org" , Neil Cerutti 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: 11 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1354267614 news.xs4all.nl 6928 [2001:888:2000:d::a6]:59402 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:34090 > Can you print ex_phone first. You are opening the files in text mode > so I wonder if the line endings are causing you to read and extra > "line" in between. Can you try reading the csv as "rb" instead of > "rt"? Yes I did this: use the global list PHONELIST and opening the CSV in binary - it works now Thanks Anatoli