Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!xlned.com!feeder1.xlned.com!newsfeed.xs4all.nl!newsfeed1a.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.000 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'example:': 0.03; 'from:addr:yahoo.co.uk': 0.04; 'anyway.': 0.05; 'subject:Python': 0.06; 'sys': 0.07; 'happen.': 0.09; 'lawrence': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'python': 0.11; 'jan': 0.12; 'language.': 0.14; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'subject:versions': 0.16; 'language': 0.16; 'wrote:': 0.18; 'bit': 0.19; 'version.': 0.19; '>>>': 0.22; 'import': 0.22; 'saying': 0.22; 'this?': 0.23; 'header:User-Agent:1': 0.23; 'unicode': 0.24; '---': 0.24; "i've": 0.25; 'this:': 0.26; 'header:X-Complaints-To:1': 0.27; 'header:In- Reply-To:1': 0.27; 'idea': 0.28; 'function': 0.29; 'experiences': 0.30; 'skip:( 20': 0.30; "i'm": 0.30; 'but': 0.35; 'hi,': 0.36; 'somebody': 0.38; 'to:addr:python-list': 0.38; 'does': 0.39; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'how': 0.40; 'tell': 0.60; 'free': 0.61; 'viruses': 0.61; 'protection': 0.63; 'our': 0.64; 'different': 0.65; 'forward': 0.65; 'thomas': 0.65; 'antivirus': 0.68; '2014,': 0.84 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Mark Lawrence Subject: Re: Pylint across Python versions Date: Mon, 10 Feb 2014 13:03:36 +0000 References: <317fd2a4-186b-4b97-ad7f-084609d0a9a4@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: host-92-24-218-47.ppp.as43234.net User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 In-Reply-To: <317fd2a4-186b-4b97-ad7f-084609d0a9a4@googlegroups.com> X-Antivirus: avast! (VPS 140210-0, 10/02/2014), Outbound message X-Antivirus-Status: Clean 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: 44 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1392037432 news.xs4all.nl 2921 [2001:888:2000:d::a6]:40492 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:65813 On 10/02/2014 11:39, thomas.lehmann@adtech.com wrote: > Hi, > > somebody who can tell me about pylint experiences across > different Python version. > > Example: > I'm using a construct like this: > > if sys.version.startswith("3."): > unicode = str > > The reason is that Python 3 does not have this > function anymore but pylint yells for Python < 3 > about redefinition also it does not happen. I've no idea what the above is saying but see below anyway. > > How to get forward with this? > > Regards, > Thomas > >>> import sys >>> sys.version '3.4.0b2 (v3.4.0b2:ba32913eb13e, Jan 5 2014, 16:23:43) [MSC v.1600 32 bit (Intel)]' >>> sys.version.startswith('3.') True >>> -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence --- This email is free from viruses and malware because avast! Antivirus protection is active. http://www.avast.com