Path: csiph.com!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!cs.uu.nl!news.stack.nl!newsfeed.xs4all.nl!newsfeed3.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.004 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'subject:file': 0.07; 'python': 0.09; 'ignoring': 0.09; 'subject:create': 0.09; 'ignore': 0.13; 'languages.': 0.15; 'alot': 0.16; 'differs': 0.16; 'great!': 0.16; 'initially,': 0.16; 'insensitive': 0.16; 'lowercase': 0.16; 'pizza': 0.16; 'respecting': 0.16; 'wrote:': 0.17; 'comparing': 0.17; '2.x': 0.22; '3.x': 0.22; 'help.': 0.22; 'header:In-Reply-To:1': 0.25; 'header:User-Agent:1': 0.26; 'wrote': 0.26; 'values': 0.26; 'question': 0.27; 'equivalent,': 0.29; 'sets.': 0.29; 'character': 0.29; "i'm": 0.29; 'worked': 0.30; 'file': 0.32; 'could': 0.32; 'function.': 0.33; 'problem': 0.33; 'to:addr:python-list': 0.33; 'languages': 0.33; 'thanks': 0.34; 'pm,': 0.35; 'characters': 0.36; "wasn't": 0.36; 'method': 0.36; "i'll": 0.36; 'subject:: ': 0.38; 'some': 0.38; 'to:addr:python.org': 0.39; 'received:192': 0.39; 'received:192.168': 0.40; 'your': 0.60; 'between': 0.63; 'received:74.208': 0.71; 'debt': 0.91 Date: Thu, 28 Feb 2013 16:23:35 -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> In-Reply-To: <512fc240$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:awye8nPtHaTRUY+zwRF4lTUAGybBiCyrko/AiaXfoQB KDGI32gedinYeo80o9GQos//8Kvn1KotoPqReScoPDFtS1MJot bcZZ7Fm8CjXfikzbx1SGryeEnzmTctYQDBTdRM9IrwvbaOEFuk +Ap+EUJQXivuRRulA5IMeUqw7ZH/2uZzWXrfdP7C12qTx4FARy pv6rHX5eNplur8xqQKmyTx8Ep3mSRiEB/D9cywdDeq8oRB2Ng0 4X/TMwC7nV8bCqwm8LvTFA5337JvNCKMrAgOqOkNV9g0R4E4bT MT8IKSxsWAov6tyqlaZDFBUOF58KHYkJcVAChy3T1HlqdcFVg= = 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: 25 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1362086631 news.xs4all.nl 6947 [2001:888:2000:d::a6]:43849 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:40186 On 02/28/2013 03:46 PM, io wrote: > Neil, it works great! > > Just one question : what can i do for ignoring the case sensitive of the > symbol? > > It wasn't working initially, then i wrote the values respecting case > sensitive in the file esclusioni and all worked as a charm. I would just > like to know if i could ignore the case senstive function. > > Thanks alot for your help. > > I'm in debt with you, i'll spend a pizza for you! > 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 -- DaveA