當前位置:
首頁 > 知識 > Python 2 在 2020 年元旦正式停止官方支持

Python 2 在 2020 年元旦正式停止官方支持

(點擊

上方公眾號

,可快速關注)




編譯:技術最前線(TopITnews)




儘管 Python 官方之前公布相應消息,會在 2020 年停止對 Python 2 的官方支持,但並未落實到具體日期。



最近 Python 之父 Guido van Rossum 在官方郵件組回復了對 Python 2.7 何時終結(EOL)的諮詢。








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. 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 的 EOL 日期是 2020 年 1 月 1 日

,之後不會有任何更新,源碼的安全補丁也不會有了。




2020 年元旦之後,來自 Python 核心開發團隊、PSF(Python 軟體基金會)、Python.org 的支持,統統都停掉。




如果以後你想要對 2.7 的支持,你得給商業供應商掏錢了。當然了,因為 Python 是開源的,所以也歡迎大家來 fork。




官方核心開發團隊已經努力工作夠長的時間了,離 2020 年的 EOL 日期還有很長,(之前曾說過在 2015 年就終結),所以停止支持 Python 2,我完全沒覺得有啥糟糕的。




2017 年宣布不再支持 Python 2 的軟體/庫有:






  • Python Web 開發框架 Django 2.0 發布,不再支持 Python 2



  • Numpy 庫準備放棄支持 Python 2




還沒遷移到 Python 3 的,應該早做打算啦~






看完本文有收穫?請轉

發分享給更多人


關注「P

ython開發者」,提升Python技能


喜歡這篇文章嗎?立刻分享出去讓更多人知道吧!

本站內容充實豐富,博大精深,小編精選每日熱門資訊,隨時更新,點擊「搶先收到最新資訊」瀏覽吧!


請您繼續閱讀更多來自 Python開發者 的精彩文章:

前谷歌工程師差點因為不知道貝葉斯公式被拒
面向對象:人生漫漫,攜手風雨

TAG:Python開發者 |