Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.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.005 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'operator': 0.03; 'that?': 0.05; 'subject:test': 0.07; 'python': 0.09; 'imho.': 0.09; 'subject:language': 0.09; 'subject:version': 0.09; 'to:name :python-list': 0.15; 'ternary': 0.16; 'wrote:': 0.17; 'x-mailer:microsoft outlook express 6.00.2900.5931': 0.22; 'idea': 0.24; 'mind.': 0.27; 'newer': 0.27; 'run': 0.28; 'install': 0.29; 'code': 0.31; 'to:addr:python-list': 0.33; 'version': 0.34; 'subject:?': 0.35; 'test': 0.36; 'charset:us-ascii': 0.36; 'possible': 0.37; 'why': 0.37; 'subject:: ': 0.38; 'to:addr:python.org': 0.39; 'subject:-': 0.40; 'sounds': 0.71; 'springs': 0.84; 'safer': 0.91 MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; CHARSET=US-ASCII; format=flowed; reply-type=original From: Gisle Vanem To: Python-list References: <1454e34f-5ca0-4f49-ad29-c99df4fdd322@gu9g2000vbb.googlegroups.com> Subject: Re: pylint or similar to test version-specific language constructs? Date: Thu, 10 Jan 2013 01:07:40 +0100 X-Priority: 3 X-MSMail-priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.5931 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 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: 13 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1357776502 news.xs4all.nl 6844 [2001:888:2000:d::a6]:60317 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:36535 "jkn" wrote: > I have to write python code which must run on an old version of > python (v2.4) as well as a newer (v2.7). I am using pylint and would > like to check if is possible to check with pylint the use of operators > etc. which are not present in 2.4; the ternary operator springs to > mind. No idea about PyLint. Why not install Python 2.4 and test with that? Sounds safer IMHO. -gv