How to Convert Python 2 Files to Python 3 on Mac - Tutorial

preview_player
Показать описание

In this video tutorial, I walkthrough the steps on how to convert files from Python 2 to Python 3 using the 2to3 program on Mac OSX. This is useful in different cases, for example, assuming you can’t find a way to port (or work on) a Python 2 library to 3.x, then it would be useful to consider starting off in 2.x and converting the script from there. As long as the 2.x script is error-free and debugged, you can convert the file effectively with 2to3 and any dependency will be supported. Make sure to have Python 2 and 3 installed on your Mac! Open up Terminal and get started from there. Check out the official documentation on 2to3 below.

Connect With Me:

Рекомендации по теме
Комментарии
Автор

Great video you saved me hours of works !!

CtrlZMusic
Автор

any way to decompile batches of .pyc inside script folders??

iVeLeVi
Автор

IF it wasn't for your vid, I'd still be lost. Thanks a bunch. :)

LeCepheid
Автор

Can we all take a moment to appreciate that whoever wrote the conversion program is a much better programmer than we probably are?

1. Because of how complex it must be
2. Because if we were that great we would just port it ourselves lol

cheesescrust
Автор

Thanks for the video! Very helpful. How long does it normally take for the new python3 script to pop up? I had about a 300 line script that had a decent amount of changes that needed to be made, but is taking quite a long time and not showing up. The bak up file appeared right away.

jeremykravitz
visit shbcf.ru