Saying bye bye to Python 2

Skip Montanaro skip.montanaro at gmail.com
Fri Jan 10 19:55:24 EST 2020


>
> As many know, python 2 was retired. 🐍
> This means imminent migration to 3 will be a must ?
>

Not if you don't change anything (update software or hardware). If it ain't
broke, there's no need to fix it. OTOH, if your software, Python itself, or
your operating system have security or other bugs, you may well have to
update something. Even so, that may well not force a switch to Python 3.

> I thought that upgrading is not that simple.
>

That depends. In my experience, str/bytes were the only frustrating bits.
Other than that, the 2to3 tool does a pretty good job. Also, assuming you
have a decent suite of unit tests, porting from 2 to 3 will be much more
straightforward.

Skip


More information about the Python-list mailing list