← Back to DAGDA | Support | Source: https://mail.python.org/pipermail/python-porting/2010-June/000137.html

[Python-porting] Recommended Python version?

Antoine Pitrou solipsis at pitrou.net
Thu Jun 24 16:23:43 CEST 2010


Hello Shane,

> Apologies if this is not the right list for this question, but there are
> many Python lists and I wasn't sure which to approach.
> 
> We started the BIND 10 project a year ago, and picked Python 3 because
> we don't expect the software to be production-ready until after 3 years
> of work.

What will Python be used for?

If it's used as an embedded interpreter (e.g. for creating plugins) then it's a
no-brainer really: the interpreter will be linked into your binary and there's
no reason not to go with Python 3. The language is streamlined compared to
Python 2, which makes it probably easier to use for almost everyone except
people already expert in Python 2.

If it's used for separate scripts or utility programs, I would also recommend
Python 3 because, two months from now, 3.x will be the only actively developed
branch. 2.7 is scheduled for release in a couple of weeks and it's the last
feature release in the 2.x branch. As Martin explained, in two or three years
the Python version of choice will be 3.2/3.3.

(besides, you probably already know that compiling Python is easy and fast; all
is needed, basically, is a C compiler and a reasonably comprehensive standard C
library; you could even include your own local copy of Python 3 in your build
process if you are really picky about not introducing dependencies)

> We're considering back-porting the project from 3.1 to 2.7, and then
> maintaining a version of the software that works with both the older 2.x
> and the newer 3.x series. Does this make any sense?

If many of your users ask loudly for it, then perhaps it makes sense. I don't
think there's much point in doing it proactively, though. It will create an
additional maintenance burden, and might actually confuse your users.

Regards

Antoine.




More information about the Python-porting mailing list