LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Upgrade Python 2.7 to 3.8 (https://www.linuxquestions.org/questions/linux-software-2/upgrade-python-2-7-to-3-8-a-4175672790/)

susja 04-08-2020 09:35 AM

Upgrade Python 2.7 to 3.8
 
My team has a lot of scripts written in Python 2.7. Now we have to upgrade it to Python 3.8. I found this link https://pythonconverter.com/#creators and it worked for me. Unfortunately my company policy does not allow to use on-line tools hence I have to come up with other solution. Go into each script and modify it manually … would be very time consuming operation. Could you propose other way of conversion? Maybe some other tool or script or anything that would allow me do conversion automatically … or almost automatically?
Thanks

boughtonp 04-08-2020 09:44 AM


 
Automated Python 2 to 3 code translation is part of Python itself:

https://docs.python.org/2/library/2to3.html
https://docs.python.org/3.8/library/2to3.html


susja 04-08-2020 02:50 PM

Please never mind.
I am all set now.
Using 2to3 executable did the job for me


All times are GMT -5. The time now is 06:53 PM.