I am a python 2 user on windows 7 and i want to use python 2 features in python 3 code for a assignment as i am not that familiar with python 3.
Could you please suggest any python 3 module which can help me use python 2 code in python 3. just tell me a name for the module. I will figure out how to use it.
Thank's in advance!
You have a choice between two tools in porting your code automatically: Futurize and Modernize. Which tool you choose will depend on how you want your code to be. Futurize does its best to make Python 3 idioms and practices exist in Python 2, e.g. backporting the bytes type from Python 3 so that you have semantic parity between the major versions of Python. Modernize, on the other hand, is more conservative and targets a Python 2/3 subset of Python, directly relying on six to help provide compatibility. As Python 3 is the future, it might be best to consider Futurize to begin adjusting to any new practices that Python 3 introduces which you are not accustomed to yet