+ 3

Can i use python3 feature in python2 based code?

My code is python2 based but now I've to use python3 features into it, is this possible without upgrading or I've to upgrade my entire code to python3. If I need to upgrade, is there any tool for it. Thanks

30th Jul 2019, 1:51 PM
Initiator
4 Respuestas
+ 7
Hello! You'll have to convert your code from Python2 to Python3 indeed! Some resources can help you: * The unix tool "2to3" * pythonconverter.com Good luck! 😉
30th Jul 2019, 1:58 PM
Ventura 🐝🌵
Ventura 🐝🌵 - avatar
+ 1
You have to convert. Use above mentioned tools :)
30th Jul 2019, 5:24 PM
Iqbal Hawre
Iqbal Hawre - avatar
0
Thank you
31st Jul 2019, 2:00 AM
Initiator
0
There is some stuff you can import from "module" future which provides some things that python3 offers.
31st Jul 2019, 10:51 PM
Mateusz R
Mateusz R - avatar