Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!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.002 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'string': 0.09; 'newline': 0.09; 'subject:fields': 0.09; 'cc:addr:python-list': 0.11; '\\n,': 0.16; 'from:addr:pobox.com': 0.16; 'from:addr:skip': 0.16; 'subject:CSV': 0.16; 'to:addr:python.list': 0.16; 'to:addr:tim.thechases.com': 0.16; 'to:name:tim chase': 0.16; 'sender:addr:gmail.com': 0.17; 'cc:addr:python.org': 0.22; 'skip': 0.24; 'specify': 0.24; 'cc:2**0': 0.24; 'header:In-Reply-To:1': 0.27; 'message-id:@mail.gmail.com': 0.30; 'lines': 0.31; 'subject:with': 0.35; 'received:google.com': 0.35; 'how': 0.40 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=2EpVUop4ZxUIsVsFbn84vSvUo2GLQpUELdAW5tw3xqQ=; b=aiEsqf2RexNfP8I3AG/We2hC4ZnhXe72BWTuYoSmwR5FVLjy2ZWSkbtlQQj9Epq0vJ Kd2dVOPz5sJ2sVzA23QKNPxnsOu/rMRBE68sKvj2FVFKUCb/cqZJ+TI/bX7zQUrNFkZG uyafplGaBPL6HntDKHELFGUC2igarkzMFhIpuNSKjsQ+3mzJcM0tiB5Lt7L+NGvozQ78 A7pF/NGZ3Fh7ja3rGX1LxOoZNGUbRikOMKZVy0c/O2Mpd+66i6OHgHrn53aWuvk1Rbg2 PodETo+NIbSxfaEDkbJMXhvy23bvCV2q8AOewcbHmBIS8DEWVnMwBE9J5TTiZyX16RUm E3uQ== MIME-Version: 1.0 X-Received: by 10.180.9.99 with SMTP id y3mr2489631wia.61.1378308036730; Wed, 04 Sep 2013 08:20:36 -0700 (PDT) Sender: skip.montanaro@gmail.com In-Reply-To: <20130904100403.163b42bd@bigbox.christie.dr> References: <20130904100403.163b42bd@bigbox.christie.dr> Date: Wed, 4 Sep 2013 10:20:36 -0500 X-Google-Sender-Auth: sN8NOMku6CuSDGRk4YPTN7WkUbg Subject: Re: Dealing with \r in CSV fields in Python2.4 From: Skip Montanaro To: Tim Chase Content-Type: text/plain; charset=UTF-8 Cc: Python 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: 6 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1378308044 news.xs4all.nl 15920 [2001:888:2000:d::a6]:60659 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:53630 > _csv.Error: newline inside string How are the lines actually terminated, with \r\n or with just \n? If it's just \n, what happens if you specify \n as the line terminator? Skip