首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往

终于确定!Python 2.7 支持将于 2020年1月1 日终止

来自:开源中国

链接:https://www.oschina.net/news/94198/python-2-7-quit

近日,Python之父Guido van Rossum在邮件列表上宣布 Python 2.7将于2020年1月1日终止支持。用户如果想要在这个日期之后继续得到与Python 2.7有关的支持,则需要付费给商业供应商。

Guido van Rossum 表示:

Let's not play games with semantics.The way I see the situation for 2.7 is that EOL is January 1st, 2020, and there will be no updates, not even source-only security patches, after that date.(Python 2.7提供的支持截止到2020年1月1日,并且在那之后将不会有更新,甚至没有源代码安全补丁。)Support (from the core devs, the PSF, and python.org) stops completely on that date. If you want support for 2.7 beyond that day you will have to pay a commercial vendor. Of course it's open source so people are also welcome to fork it. But the core devs have toiled long enough, and the 2020 EOL date (an extension from the originally annouced 2015 EOL!) was announced with sufficient lead time and fanfare that I don't feel bad about stopping to support it at all.

之前曾有开发者预测过 Python 2.7 的终止时间,不管大家印象中的终止时间是什么时候,现在都以 2020 年 1 月 1 日为最终确定时间。

Python 2.7 是 2.x 系列的最后一个版本,它的继承者 Python 3.0 在 2008 年 12 月发布,但不兼容 2.x 系列,3.0 的许多特性和语法向后移植到了 2.6 和 2.7。2.7 的支持时间将最少为 10 年,2020 年前会一直提供 bug 修正。

Python 版本使用情况

去年有调查数据显示,Python 3 的使用出现了上涨,涨幅约 8.2%。如下图所示:

3.5 版和 3.4 版的使用率分别只占 43% 和 20%,有 35% 的用户已经开始使用 Python 3.6

以下是 Python 2.7 和 Python 3 各版本的使用率对比图,从图中我们可以看出 Python 3 版的用户群体正在迅速扩展:

如果你主要的代码仍然基于 Python 2,这是完全可以理解的。PyPI 的大部分流行软件包现在都可以在 Python 2 和 Python 3 上运行,而且每天都会增加更多。为了简化转换, 官方移植指南提供了在 Python 3 中运行 Python 2 代码的建议:

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

  • 发表于:
  • 原文链接http://kuaibao.qq.com/s/20180316A1BL3X00?refer=cp_1026
  • 腾讯「腾讯云开发者社区」是腾讯内容开放平台帐号(企鹅号)传播渠道之一,根据《腾讯内容开放平台服务协议》转载发布内容。
  • 如有侵权,请联系 cloudcommunity@tencent.com 删除。

扫码

添加站长 进交流群

领取专属 10元无门槛券

私享最新 技术干货

扫码加入开发者社群
领券