Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!news2.arglkargh.de!newsfeed.fsmpi.rwth-aachen.de!proxad.net!feeder1-2.proxad.net!news.tele.dk!news.tele.dk!small.news.tele.dk!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.021 X-Spam-Evidence: '*H*': 0.96; '*S*': 0.00; 'base.': 0.05; 'suppose': 0.07; 'versions.': 0.07; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'python': 0.11; '4:59': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'subject:python': 0.16; 'wrote:': 0.18; 'possible,': 0.19; 'header :User-Agent:1': 0.23; "aren't": 0.24; 'header:X-Complaints-To:1': 0.27; 'header:In-Reply-To:1': 0.27; '2.3': 0.30; "i'm": 0.30; 'work.': 0.31; 'code': 0.31; 'layer': 0.31; 'perl': 0.31; 'could': 0.34; 'something': 0.35; 'case,': 0.35; 'but': 0.35; 'there': 0.35; 'version': 0.36; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'little': 0.38; 'sure': 0.39; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'how': 0.40; 'worth': 0.66; 'latest': 0.67; 'audience': 0.74; 'batchelder': 0.84; 'comment.': 0.84; 'cost,': 0.84; 'worthwhile.': 0.84; 'care,': 0.91; 'choice.': 0.93 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Ned Batchelder Subject: Re: running python 2 vs 3 Date: Thu, 20 Mar 2014 17:31:58 -0400 References: <87ob10nbeh.fsf@elektro.pacujo.net> <532B4750.2090006@yahoo.com> <87eh1wpr96.fsf@elektro.pacujo.net> <8738icppoe.fsf@elektro.pacujo.net> <87pplgoac6.fsf@elektro.pacujo.net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: 18.189.9.83 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 In-Reply-To: <87pplgoac6.fsf@elektro.pacujo.net> 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: 27 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1395351136 news.xs4all.nl 2894 [2001:888:2000:d::a6]:57349 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:68626 On 3/20/14 4:59 PM, Marko Rauhamaa wrote: > Ned Batchelder : > >> It's an extreme case, but the latest released version of coverage.py >> supports Python 2.3 through 3.3 with one code base. To do it, there's >> a compatibility layer (akin to six). Then you stay away from features >> that aren't available on all versions. In a few places, you might need >> to have version checks, and the code can get a little idiomatic to >> continue to work. > > Well, with proper care, I suppose the same code base could support perl > as well. ;) I'm not sure how to take this comment. I feel like you are mocking my choice. I wanted to make coverage.py available to as broad an audience as possible, something that I think is worthwhile. Yes, there was an engineering cost, but the tradeoff was worth it. > > > Marko > -- Ned Batchelder, http://nedbatchelder.com