Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!news.stack.nl!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.016 X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; 'subject:text': 0.05; 'subject:file': 0.07; 'instance.': 0.09; 'subject:into': 0.09; '-tkc': 0.16; 'ah,': 0.16; 'from:addr:python.list': 0.16; 'from:addr:tim.thechases.com': 0.16; 'from:name:tim chase': 0.16; 'wrote:': 0.18; 'platforms': 0.22; 'mention': 0.26; '(for': 0.26; 'somewhere': 0.26; 'header:In-Reply-To:1': 0.27; 'that.': 0.31; 'searches': 0.31; 'file': 0.32; 'url:python': 0.33; "i'd": 0.34; 'objects': 0.35; 'but': 0.35; 'object,': 0.36; "didn't": 0.36; 'thanks': 0.36; 'url:org': 0.36; 'url:library': 0.38; 'to:addr :python-list': 0.38; 'to:addr:python.org': 0.39; 'read': 0.60; 'catch': 0.60; 'difference.': 0.84; 'received:50.22': 0.84 Date: Thu, 6 Feb 2014 12:51:34 -0600 From: Tim Chase To: python-list@python.org Subject: Re: parse a csv file into a text file In-Reply-To: References: <5c268845-003f-4e24-b27a-c89e9fbfcc6c@googlegroups.com> <20140206115116.69553ffe@bigbox.christie.dr> X-Mailer: Claws Mail 3.8.1 (GTK+ 2.24.10; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Authenticated-Sender: tim@thechases.com X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - boston.accountservergroup.com X-AntiAbuse: Original Domain - python.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - tim.thechases.com X-Get-Message-Sender-Via: boston.accountservergroup.com: authenticated_id: tim@thechases.com 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: 19 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1391712654 news.xs4all.nl 2893 [2001:888:2000:d::a6]:38139 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:65551 On 2014-02-06 18:34, Neil Cerutti wrote: > They do actually mention it. >=20 > From: http://docs.python.org/2/library/csv.html >=20 > If csvfile is a file object, it must be opened with > the =E2=80=98b=E2=80=99 flag on platforms where that makes a difference= .=20 >=20 > So it's stipulated only for file objects on systems where it > might make a difference. Ah, I *knew* I'd read that somewhere but my searches in firefox (for "binary", "rb" and "wb") didn't manage to catch that particular instance. Thanks for disinterring that. -tkc