How hard is it to port an application from Python 2 to make it work in Python 3? Make it backward compatible. Say the program consists of 50 Python files and everything connected with each.
-
And if there any libraries and any *tricks* to make it much easier,please add them.
-
Answer:
Depends on what libraries and external interfaces are in use in the Python 2 code. If the Python 2 program is purely Python, then 2to3 is going to get you much of the way to Python 3, if not all the way. But if you don't have a decent set of regression tests laying around for your app, you aren't going to sleep soundly until you work out a suite of tests for the Python 3 incarnation of your program. But if your program has lots of embedded C code, and passes to C routines strings that are now going to be in Unicode, and if you have dependencies on library modules that just haven't yet made their way to the Python 3 side of the ledger, then 2to3 is going to be a mere down payment on the conversion of your app from Python 2 to Python 3.
R. Drew Davis at Quora Visit the source
Related Q & A:
- How do I port my application to OS X?Best solution by Stack Overflow
- How to make dvd+r compatible with player?Best solution by Yahoo! Answers
- How well does Rembrandt 2 Hour whitening kit work?Best solution by doesitreallywork.org
- How hard is it to make your own magazine?Best solution by Yahoo! Answers
- How hard is it making a career out of sports betting?do a lot of people manage okay and make a decent salary?Best solution by Yahoo! Answers
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.