Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed3a.news.xs4all.nl!xs4all!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.005 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; ':-(': 0.16; '>on': 0.16; 'csv': 0.16; 'from:addr:cs': 0.16; 'from:addr:zip.com.au': 0.16; 'from:name:cameron simpson': 0.16; 'message-id:@cskk.homeip.net': 0.16; 'received:211.29': 0.16; 'received:211.29.132': 0.16; 'received:cskk.homeip.net': 0.16; 'received:homeip.net': 0.16; 'received:optusnet.com.au': 0.16; 'received:syd.optusnet.com.au': 0.16; 'simpson': 0.16; 'subject:CSV': 0.16; 'wrote:': 0.18; 'file,': 0.19; 'header:User-Agent:1': 0.23; 'cheers,': 0.24; 'values': 0.27; 'header:In-Reply-To:1': 0.27; 'regular': 0.32; 'guess': 0.33; 'reader': 0.33; '14,': 0.36; 'received:com.au': 0.36; 'charset:us-ascii': 0.36; 'received:211': 0.38; 'to:addr :python-list': 0.38; 'to:addr:python.org': 0.39; 'content- disposition:inline': 0.62; 'rusi': 0.91 Date: Mon, 15 Sep 2014 09:28:03 +1000 From: Cameron Simpson To: python-list@python.org Subject: Re: CSV methodology MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <85cca2f1-47e3-490c-92e8-66c0461cf8ff@googlegroups.com> User-Agent: Mutt/1.5.21 (2010-09-15) References: <85cca2f1-47e3-490c-92e8-66c0461cf8ff@googlegroups.com> X-Optus-CM-Score: 0 X-Optus-CM-Analysis: v=2.1 cv=BdjhjNd2 c=1 sm=1 tr=0 a=YuQlxtEQCowy2cfE5kc7TA==:117 a=YuQlxtEQCowy2cfE5kc7TA==:17 a=ZtCCktOnAAAA:8 a=PO7r1zJSAAAA:8 a=LcaDllckn3IA:10 a=kj9zAlcOel0A:10 a=vrnE16BAAAAA:8 a=pGLkceISAAAA:8 a=8oWEshlKsneYWR0SWU4A:9 a=CjuIK1q_8ugA:10 a=VxrayWlgw7gA:10 a=MSl-tDqOz04A:10 a=tSjaFJ_ox00A:10 a=8xgQgzyJnmsA:10 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: 16 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1410737288 news.xs4all.nl 2870 [2001:888:2000:d::a6]:38854 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:77871 On 14Sep2014 01:56, rusi wrote: >On Sunday, September 14, 2014 2:09:51 PM UTC+5:30, Cameron Simpson wrote: > >> If you have a nice regular CSV file, with say 3 values per row, you can go: > >> reader = csv.reader(f) >> for row in reader: >> a, b, c - row > >I guess you meant: a, b, c = row >? Yeah :-( Cheers, Cameron Simpson