running python 2 vs 3

Marko Rauhamaa marko at pacujo.net
Thu Mar 20 16:59:21 EDT 2014


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. ;)


Marko



More information about the Python-list mailing list