Path: csiph.com!usenet.pasdenom.info!news.albasani.net!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.029 X-Spam-Evidence: '*H*': 0.94; '*S*': 0.00; 'argument': 0.04; 'cpython': 0.05; 'csv': 0.16; 'iterates': 0.16; 'iteration.': 0.16; 'wrote:': 0.17; 'windows': 0.19; 'module': 0.19; "i've": 0.23; 'header:In-Reply-To:1': 0.25; 'header:User-Agent:1': 0.26; '(which': 0.26; 'object,': 0.27; 'file': 0.32; 'could': 0.32; 'to:addr:python-list': 0.33; 'that,': 0.34; 'received:google.com': 0.34; 'doing': 0.35; 'received:192.168.0': 0.35; 'message- id:@gmail.com': 0.36; "didn't": 0.36; 'subject:: ': 0.38; 'object': 0.38; 'to:addr:python.org': 0.39; 'received:192': 0.39; 'received:192.168': 0.40; 'think': 0.40; 'john': 0.60; 'further': 0.61; '9.1': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:message-id:date:from:user-agent:mime-version:to:subject :references:in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; bh=0zSZUW/G+YJkXYgey5QaonZ8CtGm/J9sd+KCgAEzKYE=; b=Ez0DUciPq2NV6liI4iKCqO5ETChGQT0BTQ9Hv87/88UCioz8gWhGUCGputc5DO6Wvk veJZzglbx95ZEPeN8HxtMLsqKiNmAgYESBJLRkZlnQmNc3QTdzrxInW3rLctLS5be4n4 PaQ+k7uJ91eoAM46jy7eU0KrK1771nDWMhznlGEkfPyULkTWf6aKguyBNfw+IUXEmHe6 eg0x4cG+4vEZZUawVOSxuwBFeuyVe7DuZg9LWNWV8g+47faKc7J7a3gfe4ZXR7LRhUul rbfpSKWlqUkk0i3FHxIHmZjUc1R2iGGRjNx98DevBi9ZT+sQjLW73Qv13Bka9hF5gDw+ beHw== X-Received: by 10.50.213.41 with SMTP id np9mr13469841igc.79.1362639465202; Wed, 06 Mar 2013 22:57:45 -0800 (PST) Date: Thu, 07 Mar 2013 00:57:42 -0600 From: Andrew Berg User-Agent: Mozilla/5.0 (Windows NT 6.2; WOW64; rv:17.0) Gecko/20130107 Thunderbird/17.0.2 MIME-Version: 1.0 To: "comp.lang.python" Subject: Re: Unhelpful traceback References: In-Reply-To: X-Enigmail-Version: 1.5.1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 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: 1362639469 news.xs4all.nl 6898 [2001:888:2000:d::a6]:54321 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:40711 On 2013.03.07 00:33, John Nagle wrote: > This is wierd, becuase "for fields in reader" isn't directly > doing a decode. That's further down somewhere, and the backtrace > didn't tell me where. Looking at the csv module docs,the reader object iterates over the csvfile argument (which can be any iterator). I think that, in the case of a file object, it's not decoded until iteration. I've never used the csv module before though, so I could be wrong. -- CPython 3.3.0 | Windows NT 6.2.9200 / FreeBSD 9.1