Thursday, April 22, 2021

Python 2.7, its last release, its end of life, and how to transition to Python 3

 Python 2.7.18 is the last release of Python 2.

As of January 1st, 2020 no new bug reports, fixes, or changes will be made to Python 2, and Python 2 is no longer supported.

Python 3, is not backward compatible.  python.org suggest running 2to3 tool to automatically convert Python 2 to Python 3.

Here is an example:  

The ConfigParser module has been renamed to configparser in Python 3. The 2to3 tool will automatically adapt imports when converting your sources to Python 3.

ref: https://docs.python.org/2/library/configparser.html