Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
The incompatibility between Python 3 and previous versions is a major consideration when you’re dealing with legacy code. Python provides both procedures and tools for moving code from Python 2.x to Python 3, using the warnings available in Python 2.6 and higher and the 2to3 conversion tool, followed by ample testing. Migrating the code Python 3 is probably the ideal long-term solution, but only if the code has adequate test coverage to ensure the new version functions properly.