python2 2020年_Python 2即将死亡–知道为什么吗? | 2020年1月Python 2结束

从2006年Python3.0的推出到2020年Python2正式退役,经历了漫长的过渡期。尽管官方多次呼吁,仍有许多用户坚持使用Python2。直到2020年1月1日,Python2因不再接收安全更新而彻底退出历史舞台。

python2 2020年

Back late in 2006, when Python 3.0 came into introduction, the volunteers and officials felt the need that users should migrate from the old version (Python 2) to the newer version.

早在2006年末,当Python 3.0引入时,志愿者和官员感到用户需要将旧版本(Python 2)迁移到新版本。

Since they did not want to hurt Python programmers, so they decided to end Python 2.0 in 2015. They officially announced this news late back in 2008 that sunset of Python 2 would take place in 2015.

由于他们不想伤害Python程序员,因此他们决定在2015年结束Python 2.0。他们在2008年末正式宣布了这一消息,称Python 2将于2015年停用。

“But thanks to Python lovers! they didn’t migrate to Python 3.0 in seven years of the deadline.”

“但是感谢Python爱好者! 在截止日期的七年内,他们没有迁移到Python 3.0。”

Many of them did, but the vast majority didn’t. So, it was then decided to extend the end of Python 2 in 2020. And now the volunteers, as well as officials, are earnest for the concern of migrating from the older version to the newer one.

他们中的许多人做到了,但绝大多数人没有。 因此,后来决定在2020年延长Python 2的使用期限。现在,出于对从旧版本迁移到新版本的担忧,志愿者和官员们都非常认真。

将Python 2的源代码迁移到3.0版的截止日期是什么? (What is the deadline for migrating the source code of Python 2 to version 3.0?)

Python 2 is going to die soon

Image Source

图片来源

The effect shall start from the 1st of January, 2020. The Python Announcement Mailing List and The National Cyber Security Centre (NCSC), in August, has given the statement that organizations should migrate code off Python 2. Because of the effect from January 2020, it should never receive any security update.

生效日期为2020年1月1日。Python公告邮件列表和国家网络安全中心(NCSC)于8月发表声明,组织应从Python 2迁移代码。由于2020年1月生效,它永远不会收到任何安全更新。

为什么这是必要的? (Why is this necessary?)

There are only a few obvious reasons for shutting down of Python 2 and that are:

关闭Python 2的原因只有几个,它们是:

  • Python 3 is not retrograde compatible with Python 2. As a result, significant changes in Python 3 are not portable with the older version.

    Python 3不能与Python 2逆行兼容。因此,Python 3中的重大更改无法随旧版本移植。
  • Python Volunteers have also claimed that there are many improvements which Python 2 cannot handle.

    Python志愿者还声称,Python 2无法处理许多改进。
  • Working on improvements with Python 2 and Python 3 simultaneously restricts users and volunteers to make Python language faster.

    使用Python 2和Python 3进行改进同时限制了用户和志愿者加快Python语言的速度。

Another major reason that has faced major organizations was a change in the syntax of the print statement, which reduces much code. So, the majority of libraries and organizations were hesitant to migrate.

大型组织面临的另一个主要原因是print语句的语法发生了变化,这减少了很多代码。 因此,大多数图书馆和组织都不愿进行迁移。

Further, in past years, Python 3 introduced substantial improvements that have helped itself to become the precise version but was not co-related with existing projects that are already working.

此外,在过去的几年中,Python 3引入了重大的改进,这些改进已经使自己成为精确的版本,但与已经在工作的现有项目没有关联。

不迁移到Python 3的后果 (Consequences of not migrating to Python 3)

If people continue using Python 2, it would be hard for volunteers and aid agencies to help resolve any issues. As a result, volunteers who use Python to make software cannot use new things in Python 3.

如果人们继续使用Python 2,那么志愿者和援助机构将很难帮助解决任何问题。 结果,使用Python制作软件的志愿者无法在Python 3中使用新功能。

The security updates are further stopped for Python 2.0. If users receive any catastrophic security issue, volunteers cannot help them in any concern. Also, this could result in slowing down of software and other people who rely on particular software.

对于Python 2.0,安全更新将进一步停止。 如果用户收到任何灾难性的安全问题,志愿者将无法为他们提供任何帮助。 同样,这可能会导致软件和其他依赖特定软件的人员的速度变慢。

If any user still wishes to continue with Python 2, sooner or later they have to face issues which might lead to catastrophic situation and loss of data.

如果任何用户仍然希望继续使用Python 2,则他们迟早必须面对可能导致灾难性情况和数据丢失的问题。

With no further security updates for Python 2, the declaration also states that your data and information would no longer be safe. So, it’s good to migrate as soon as possible.

由于没有针对Python 2的进一步安全更新,该声明还指出您的数据和信息将不再安全。 因此,最好尽快进行迁移。

翻译自: https://www.thecrazyprogrammer.com/2019/11/end-of-python-2.html

python2 2020年

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值