Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!eu.feeder.erje.net!xlned.com!feeder5.xlned.com!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.023 X-Spam-Evidence: '*H*': 0.95; '*S*': 0.00; 'subject:file': 0.07; 'python': 0.09; 'subject:create': 0.09; 'language': 0.14; 'languages.': 0.15; 'differs': 0.16; 'insensitive': 0.16; 'lowercase': 0.16; 'wrote:': 0.17; 'comparing': 0.17; '2.x': 0.22; '3.x': 0.22; 'header:In-Reply-To:1': 0.25; 'header:User-Agent:1': 0.26; 'equivalent,': 0.29; 'sets.': 0.29; 'character': 0.29; 'info': 0.32; 'problem': 0.33; 'to:addr:python-list': 0.33; 'languages': 0.33; 'thanks': 0.34; 'pm,': 0.35; 'characters': 0.36; 'method': 0.36; 'uses': 0.37; 'subject:: ': 0.38; 'some': 0.38; 'to:addr:python.org': 0.39; 'received:192': 0.39; 'received:192.168': 0.40; 'between': 0.63; 'received:74.208': 0.71; 'actually,': 0.84; 'received:74.208.4.194': 0.84 Date: Thu, 28 Feb 2013 19:13:27 -0500 From: Dave Angel User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130106 Thunderbird/17.0.2 MIME-Version: 1.0 To: python-list@python.org Subject: Re: Read csv file and create a new file References: <512fac9c$0$40355$4fafbaef@reader1.news.tin.it> <512fb533$0$40355$4fafbaef@reader1.news.tin.it> <512fbcc7$0$40355$4fafbaef@reader1.news.tin.it> <512fc240$0$40355$4fafbaef@reader1.news.tin.it> <512fd4ab$0$40355$4fafbaef@reader1.news.tin.it> In-Reply-To: <512fd4ab$0$40355$4fafbaef@reader1.news.tin.it> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V02:K0:D2RqEsUtLU32mTVwUueHofiq+uuef6IGMbSPKozQ5Rr z3wbPrjWaAIJHz0QSIT7oy2ba/vxKC7bRV19CnVj/+6UVxut4R Ge3gwy3YeIMEL0fN9t9tb1P/r2XV3KyikYP/CoYYInQX5BvzqI V7IGoxHBqmJC7SSNC+sTSpuh4ksB/zwk9zq68vqo6ZSVXUVKZF +3rchYnnEx6BqN42geQ2HrL54iBdiXv7j+KVciZftZypTLHV3y 2N0AUXx7R7jVMTgEiT06CfWfZW/ynptmlMFptrhPgyzXxbOBdC M8LJa0sjr+Hdhw7Ia4yuf5MVJSkKwJnKGj+hpDR4qYG9Oandw= = 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: 1362096823 news.xs4all.nl 6950 [2001:888:2000:d::a6]:38794 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:40205 On 02/28/2013 05:05 PM, io wrote: > >> Just use a tolower() method on both strings when you're comparing them. >> Of course, that may not work well with international character sets. >> Some characters in some languages have no lowercase equivalent, and >> using toupper() has the same problem in other languages. >> >> Also, the approach to case insensitive differs between Python 2.x and >> 3.x > > Thanks for the info ! > What about str().lower()? > Actually, it's str.lower(), and that's what I meant. Must be some other language that uses tolower(). -- DaveA