Python 2 and 3 co-existence for 11 years, the New Year and it is necessary to say goodbye

In 2020 Python 3.9 have already entered the dev version, Python 2 and finally we said goodbye.

2 and 3

Python 2 The first version was released in 2000, October 16, this year is just 20 years. The Python 3 was released on December 3, but the 3.0 version done a lot reconstruction (primarily changes in Unicode and C API's) at the bottom, not fully compatible with Python 2, and therefore the official did not stop the maintenance of the Python 2 .

Since then, 2 and 3 are still release a new version, the official wanted to transition to the new version by smooth manner. However, not all community contributors have this energy to maintain two versions, open source library which has many more are parked in the 2.X version.

The coexistence of two versions of the days, flash is 11 years.

2 to 3

Fortunately, more and more Python 3 update unique features and performance optimization, coupled with ongoing efforts to promote the community, in recent years the explosive growth of beginners, the majority have been recommended for use as an entry version 3.X version, version 3 only in recent years to hold a dominant.

Two versions proportion trend

Python core development team has finally announced that it would phase out support for Python 2 in 2020, but did not give a specific time.

2017 NumPy officially announced that it would stop supporting Python 2 in 1 January 2019. After pandas and Jupyter notebook and other development team have announced that it will stop supporting 2.X version.

2018 Guido van Rossum on Python founder of official mail group said they will discontinue support for Python 2.7 2020 January 1, which is the last version 2.X.

Guido Mail Screenshot

He wrote in the message:

Do not play word games! Python EOL 2.7 of the (disabled) date is 1 January 2020, then, there will not be any updates, we will no longer have the source code security patches. After this date, Python core developer, PSF and python.org will not provide any support. If you want to get support, then you have to pay costs related to business. Of course, it is open source, so we also welcome fork.
We initially decided in 2015 to EOL date, then postponed to 2020, to everyone's time has been very adequate, and the core developers have worked hard for too long. In addition, frankly, I do not feel disabled Python 2.7 is a bad thing.

After 3

But stop updating does not have much impact, because, according to the latest JetBrains Python developers report shows that nearly nine out of developers are already using the Python 3 version.

JetBrains developers report

I believe in Python developer 2 in 2020 will be lower than 5%.

If you have code that want to migrate Python 3, do not forget to try to use the official 2to3 migration tools.

In addition version 3.9 has been dev version, leaving the Python 3 version is also coming to an end (unless you use two digits), how the follow-up Python go, let's wait and see.

Finally, we wish our readers a Happy New Year!


This article belongs to the original, starting in micro-channel public number " for Life program ," the background for reprint please leave a message.

After the reply concerned the following information for more resources to
respond to [information] to obtain Python / Java and other learning resources
reply [plug-in] get reptile commonly used Chrome plugin
reply [almost] get to know the latest simulation know almost Log

Guess you like

Origin www.cnblogs.com/zkqiang/p/12125399.html