Skip to content

Comment on [Django] Python 3 port - all tests now pass on 2.7.2 and 3.2.2

Comments

This is a wonderful effort, but I dont understand point of the single source approach, as 3.x branches are not backward compatible with 2.x branches.

Can someone (Vinay?) explain a simpleton (like me :)), the reasoning behind using the single-source approach?

Maintaining two code bases is difficult than maintaining one, isn't it?

To be fair, the idea has never been to maintain two code bases, but to re-run the 2to3 when building/installing.

In practice, I find this quite pain to deal with (2to3 is slow, hard to use when you need to support python 2.3 or 2.4, etc...), and much easier to just do the 2/3 compatible source codebase. Various projects use the same approach, but this is a tradeoff that will depend on a per-project basis.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.