Python 2 countdown! The official website reminds to upgrade to Python 3 as soon as possible

(Star Python developers to improve Python skills)

Original: Python Developer (id: PythonCoder)

Recently, the Python official website issued another post reminding that Python 2 support will be officially stopped on January 1, 2020. Children's shoes who have not upgraded to Python 3 should migrate as soon as possible.

640?wx_fmt=png

The official website notice is as follows:

We are volunteers who develop and maintain the Python programming language. We have decided that January 1, 2020 will be the end of Python 2 support. This means that even if someone discovers a security issue in Python 2, we will not improve it after that day. You should upgrade to Python3 as soon as possible.

Q: Why did you stop supporting Python 2 like this?

We need to end Python 2 so that we can help Python users.

We released Python 2.0 in 2000. A few years later, we realized that we needed to make some big changes to improve Python. So in 2006, we launched Python 3.0. But still many people have not upgraded, and we do not want to hurt them. Therefore, we have been continuously improving and releasing Python 2 and Python 3 for many years.

However, this makes improving Python very difficult. There are some improvements that Python 2 cannot handle. We spend less time making Python 3 better and faster.

If many people continue to use Python 2, then volunteers who use Python to develop software will encounter difficulties. They cannot use the good new things in Python 3 to improve the tools they develop.

We don't want to hurt people who use Python 2. So, in 2008, we announced that Python 2 would be terminated in 2015 and asked people to upgrade. Some people upgrade, but many don't. Therefore, in 2014, we extended the termination time to 2020.

Q: How long is the end date for Python 2?

640?wx_fmt=png

(Screenshot time: 2019-09-10)

The website pythonclock.org has a countdown. As of 2019-09-11, there are 3 months and 20 days left.

Q: If I don’t upgrade before January 1, 2020, what will happen?

If people find catastrophic security issues in Python 2 or software written in Python 2, then volunteers will not help you. If you need the help of Python 2 software, then volunteers will not help you. You will lose the opportunity to use good tools because they only run on Python 3, and you will slow down the people who depend on you and work with you.

Some of these problems will begin to appear on January 1 next year. Other problems will increase over time.

Question: I use Python 2 to write code. How should I port it to Python 3?

> Please read the migration guide on the official website:

https://docs.python.org/3/howto/pyporting.html

> It is also recommended to read Python 3 sentence practicality:

https://python3statement.org/practicalities/

Recommended reading

(Click the title to jump to read)

Think this article is helpful to you? Please share with more people

Pay attention to the "Python Developer" starred to improve Python skills

640?wx_fmt=png

Good article, I am reading ❤️

Guess you like

Origin blog.csdn.net/iodjSVf8U1J7KYc/article/details/100815584