[bind10-dev] Python 2 vs Python 3, was address dependency problems for beta/release

Francis Dupont fdupont at isc.org
Wed Nov 28 14:56:23 UTC 2012


=> for an unknown reason your message was encoded in base 64 so the quotes
can be different (i.e., cut & paste vs. from the message).

> The World Today:
> So, even if we use Python 2, we *also* have to use Python 3. Otherwise
> we'll have to do a Python 3 migration project ourselves sometime in the
> future.

=> I reached the same conclusion!

> Possible Support for Both?
> If we support Python 2.7, then Python 2 is relatively easy
                                        ^ 3

=> not only most systems are still with old 2.7 but there are a few with
even older versions! I got a bug report (there are rare so I remember
each of them) for the AFTR/PCP code about the standard

if sys.version_info.major > 2:
    raw_input = input

which failed on CentOS 5.5 with:
AttributeError: 'tuple' object has no attribute 'major'
So now I have a try:

try:
    if sys.version_info.major > 2:
        raw_input = input
except AttributeError:
    pass

In conclusion 2.7 won't save us... and the decision to start directly
with Python 3 was IMHO very good.

Regards

Francis Dupont <fdupont at isc.org>

PS: version_info named components is Issue4285 if you want the history
so the idea is 4 year old...


More information about the bind10-dev mailing list