3 ms·
Single-codebase compatibility means that the same code can run under both Python 2 and Python 3. The initial expectation was that translation tools would solve
by gdwatson 6y ago
Single-codebase compatibility means that the same code can run under both Python 2 and Python 3.
The initial expectation was that translation tools would solve this problem, but it didn’t really work out that way. Adding language features and library shims to make it possible to write pidgin Python that would run under either version meant that you could migrate libraries and parts of large codebases one at a time until the whole thing ran under Python 3.
- uranusjr 6y ago“Pidgin Python” is such an apt term, why am I only seeing it when it is no longer relevant!
- dwheeler 6y agoThat's the main working solution I found: code works in both versions. The problem is that it's way trickier than it should be. Has they made that relatively easy, the Python 2->3 transition would have had a much smoother "normal" upgrade process.