TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Python 3 vs. Python 2 debate

4 点作者 bwooceli超过 8 年前
I love the utility of Python, and though I&#x27;m not a professional developer I use it frequently at work for small projects and have done a number of sites using Django. I was sitting down to start putting a plan together to get my son started programming, and went back to &quot;learn Python the Hard Way&quot; to see if that would be a good starting point for him. I&#x27;ve been using Python 3 for my most recent stuff (a Django app at work), and quickly realized &quot;LPTHW&quot; was all still Python 2. Then I looked at his rant arguing that Python 3 was just a dead-end and essentially not worth learning (and this page was updated in November of 2016).<p>I know I&#x27;m opening a can of worms, but in pro circles, what is the general consensus on the state of Python these days? Is our dear friend Zed just a cranky outlier, or have I been under a rock and everybody just hates Python 3??

2 条评论

moxious超过 8 年前
Python made the unfortunate but understandable decision to split the community. It&#x27;s really hard to make a non-backwards compatible change in an open source community because you can&#x27;t make anybody move.<p>My $0.02 is that Python 3 is clearly better, and that if you&#x27;d use python for something new it should be 3. But I also think it&#x27;s unfortunate that the community is in the sort of state where people ask this as a legitimate question in 2017.<p>Progress requires python 2 die, but it&#x27;s taking its sweet time.
评论 #13504820 未加载
detaro超过 8 年前
If you start a new project now, use Python 3 unless you have a strong specific reason not to. It&#x27;s the nicer language, and most of the library ecosystem has been ported over by now.<p>The big issue (understandably) are existing projects in Python 2, where porting them means a lot of work that could go into other things instead.
评论 #13504485 未加载