4 Reasons On Why It is Time to Stop Using Python 2.7

Python is one of the most used languages in the world right now. In fact, it is in the TOP 10 most popular programming languages according to the TIOBE Programming Community Index of 2019, and it has been the case for the last couple of years and it’ll only keep growing.

Credit to @raymondh

However, inside the python community when we talk about python we actually talk about two major versions of python. Python 2 and its brother Python 3.

Even though Python 3 released over a decade ago. There is still a big part of the python community who didn't upgrade to the latest version.

In this article, I’ll give four reasons on why you should stop using Python 2.7 and upgrade to Python 3 for good.

1. Python 2.7 Is nearing it’s End of Life (EOL)

https://pythonclock.org/

January 1st 2020 will mark the End of Life (EOL) for Python 2.7. That means no more updates, no more security updates and no more new features. You’re on your own and that alone is a big reason to start upgrading.

2. All the Shiny New Features are Coming Exclusively for Python 3

https://www.python.org/dev/peps/pep-0498/

Since its release, Python 3 has been getting all the attention by the core devs. That means all the exciting new features and improvements are only available for Python 3. If you never used Python 3, you are in for a treat.

To get a small taste of what you’re missing on i highly encourage you to take a look at Vinko Kodžoman article.

3. The Python GIL “issue” is Being Solved Only in Python 3

https://www.youtube.com/watch?v=7RlqbHCCVyc

Multi-threading and the GIL in python have always been a subject of discussion within the community. A great proposal that could solve this issue and solve a lot more problems with it is Eric snow PEP 554 and guess what it’s only available for Python 3.

4. It’s Been More Than 10 Years

Python 3 first came out in December 3rd, 2008. Its now been more than 10 years since the first version and 6 years since Guido van Rossum announced Python 2.7 End of Life (EOL).

Almost all major open source python packages now support Python 3 (https://python3statement.org/). So there is no real reason not to upgrade.

Hope you enjoyed reading and found it useful.

Questions? Comments? Contact me via twitter @nas_bench

Written by

#ThreatHunting #WindowsInternals #Malware #DFIR and occasionally #Python.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store