python 2💊

2016-11-24 06:42:47 +08:00
 czheo
https://pythonclock.org/
4973 次点击
所在节点    Python
29 条回复
iRiven
2016-11-24 06:47:49 +08:00
Python 2.7 will retire in...

3Years4Months18Days17Hours12Minutes19Seconds

Enable Guido ModeHuh?

What's all this, then?

Python 2.7 will not be maintained past 2020. No official date has been given, so this clock counts down until April 12th, 2020, which will be roughly the time of the 2020 PyCon. I am hereby suggesting we make PyCon 2020 the official end-of-life date, and we throw a massive party to celebrate all that Python 2 has done for us. (If this sounds interesting to you, email pythonclockorg@gmail.com).

Python 2, thank you for your years of faithful service.

Python 3, your time is now.

How do I get started?

If the code you care about is still on Python 2, that's totally understandable. Most of PyPI's popular packages now work on Python 2 and 3, and more are being added every day. To ease the transition, the official porting guide has advice for running Python 2 code in Python 3.
lty494685444
2016-11-24 09:09:15 +08:00
看标题吓一跳…这不是还有三年呢么
clino
2016-11-24 09:24:50 +08:00
还有3年 4 个月呢,拖延症患者表示两年以后再考虑...
vicalloy
2016-11-24 09:54:23 +08:00
看来以后的项目都得优先支持 python3 了。

从 2 迁移到 3 的工作量其实还好。
只是如果之前测试用例写的不完整,测试是个麻烦事。
另外一些项目代码量已经很大了也是头痛。
cyr1l
2016-11-24 09:57:23 +08:00
微软早就说停止 XP , IE 678 了,然而你看看这国内市场占有率。

IPV4 地址早就说用完了,然而你看看现在的 IPV6 普及率。
fyooo
2016-11-24 09:59:09 +08:00
估计 2025 年国内业界还是一片 2.7.x
yaku
2016-11-24 10:06:34 +08:00
est
2016-11-24 10:07:21 +08:00
还在用 centos 5 的企业表示 2.2 够用了。
leotso
2016-11-24 10:21:00 +08:00
@vicalloy 相当一部分的代码可以通过自动化工具转换吧 https://docs.python.org/3/howto/pyporting.html
ps. Python 2 支持到 2020 年早就宣布了吧。。也不是最近的事
salmon5
2016-11-24 10:23:47 +08:00
Python 2 还能再战 3-5 年。
mashpolo
2016-11-24 10:25:16 +08:00
centos 还是用 2.6 的,好久过期了,一直期盼过期好督促公司人切换到 3.0 来
IanPeverell
2016-11-24 10:37:07 +08:00
还有 3 年就不用兼容 Python2 了,想想还有些激动呢
Sylv
2016-11-24 10:40:10 +08:00
啥时 macOS 自带的 Python 版本能从 2 换到 3 呢?要不然分发些小脚本还是写 Python 2 方便啊。
mnzlichunyu
2016-11-24 10:48:47 +08:00
这都不是事儿,还在公司写 python2.6 呢
imbahom
2016-11-24 12:06:18 +08:00
三年后就可以考虑学习一下 python 了,恩
raytlty
2016-11-24 12:58:35 +08:00
代码迁移其实还好啦, Python3 的新语法特性确实很不错。
4641585
2016-11-24 13:26:32 +08:00
@cyr1l 哪里能找到比较靠谱的资料吗?搜出来的不知道可靠性怎么样…
vicalloy
2016-11-24 13:29:46 +08:00
@leotso 并不是自动转完就可以一遍过的,很多地方还是需要自己做些调整的。
就新项目而言,真没啥必要继续用 py2 了。
如果你用到的哪个库不支持 python3 ,很可能是有了新的替代品。
loading
2016-11-24 13:30:05 +08:00
举个例子…… windows xp
qihboy
2016-11-24 14:25:57 +08:00
asp 到现在还没死呢

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/322840

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX