running python 2 vs 3

Ned Batchelder ned at nedbatchelder.com
Thu Mar 20 22:31:58 CET 2014


On 3/20/14 4:59 PM, Marko Rauhamaa wrote:
> Ned Batchelder <ned at nedbatchelder.com>:
>
>> 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




More information about the Python-list mailing list