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


Groups > comp.lang.python > #34090

Re: Compare list entry from csv files

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 <tolidtm@gmail.com>
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 <CAKhY55M3iOhhMbn=VuwJ7OMz_JUHVxwGy1h_BDpfBY8jQ5aRkA@mail.gmail.com> <50B3E865.9070700@davea.name> <CAKhY55OUNvGFhCjZLS7HNoDydKqHxZrnaN+bWySCsmKSk1vqsw@mail.gmail.com> <50B43246.2010902@davea.name> <mailman.313.1354026304.29569.python-list@python.org> <ahk36lFeqmlU3@mid.individual.net> <mailman.320.1354042676.29569.python-list@python.org> <ahkmslFk897U1@mid.individual.net> <CAKhY55OdS7sHDpAg3kdnpqWH5yoORqzE0bTHJVgMWZSHqqZ4kQ@mail.gmail.com> <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 <tolidtm@gmail.com>
To "Prasad, Ramit" <ramit.prasad@jpmorgan.com>
Content-Type text/plain; charset=UTF-8
Cc "python-list@python.org" <python-list@python.org>, Neil Cerutti <neilc@norwich.edu>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.378.1354267614.29569.python-list@python.org> (permalink)
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

Show key headers only | View raw


> 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

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Re: Compare list entry from csv files Anatoli Hristov <tolidtm@gmail.com> - 2012-11-27 15:24 +0100
  Re: Compare list entry from csv files Neil Cerutti <neilc@norwich.edu> - 2012-11-27 15:05 +0000
    Re: Compare list entry from csv files Anatoli Hristov <tolidtm@gmail.com> - 2012-11-27 19:57 +0100
      Re: Compare list entry from csv files Neil Cerutti <neilc@norwich.edu> - 2012-11-27 20:41 +0000
        Re: Compare list entry from csv files Anatoli Hristov <tolidtm@gmail.com> - 2012-11-29 11:22 +0100
        Re: Compare list entry from csv files Thomas Bach <thbach@students.uni-mainz.de> - 2012-11-29 13:07 +0100
        RE: Compare list entry from csv files "Prasad, Ramit" <ramit.prasad@jpmorgan.com> - 2012-11-29 23:13 +0000
        Re: Compare list entry from csv files Dave Angel <d@davea.name> - 2012-11-29 22:17 -0500
        Re: Compare list entry from csv files Anatoli Hristov <tolidtm@gmail.com> - 2012-11-30 10:26 +0100
        Re: Compare list entry from csv files Anatoli Hristov <tolidtm@gmail.com> - 2012-11-30 10:29 +0100
    Re: Compare list entry from csv files Dave Angel <d@davea.name> - 2012-11-27 14:59 -0500

csiph-web