TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Python 2.7 Retirement Countdown

60 pointsby yashmehrotraalmost 9 years ago

14 comments

CJeffersonalmost 9 years ago
No, I&#x27;m getting sick of my code being broken.<p>My C code from 15 years ago works fine, but code in other languages can end up breaking within a year. I&#x27;ve moved much of my development back to C++ just so I can have reasonable confidence my code will work when I come back to it in a couple of years.<p>I don&#x27;t care if Python 2.7 never gains another feature, as long as my code will still work in Windows 13 and Mac OS X 10.17.
评论 #11794182 未加载
评论 #11794179 未加载
评论 #11794173 未加载
评论 #11794021 未加载
评论 #11794045 未加载
评论 #11795365 未加载
评论 #11794190 未加载
dkarapetyanalmost 9 years ago
This again? Python 2.7 is never going away, no matter how much people wish it did. Python is the Cobol&#x2F;Java of dynamic languages. There is way too much volume of code written in it. This means there is a golden consulting opportunity for those willing to take it: support 2.7 code&#x2F;libraries for money.
评论 #11794153 未加载
fallenshellalmost 9 years ago
Man, the amount of people and support going for Python 2.7 is mind boggling. Coming from another language, I find the slow adoption of Python 3 insane. Don&#x27;t you want Python as a language to advance?<p>Python should&#x27;ve abandoned and deprecated 2 ages ago. I still see new tutorials teaching 2. What the hell.
评论 #11794306 未加载
评论 #11794163 未加载
Grokzenalmost 9 years ago
331&#x2F;360 of the most popular repos on pypi supports py3 <a href="http:&#x2F;&#x2F;py3readiness.org&#x2F;" rel="nofollow">http:&#x2F;&#x2F;py3readiness.org&#x2F;</a>.<p>Also python 3 support is increasing, while python 2 support is decreasing overall <a href="https:&#x2F;&#x2F;blogs.msdn.microsoft.com&#x2F;pythonengineering&#x2F;2016&#x2F;03&#x2F;08&#x2F;python-3-is-winning&#x2F;" rel="nofollow">https:&#x2F;&#x2F;blogs.msdn.microsoft.com&#x2F;pythonengineering&#x2F;2016&#x2F;03&#x2F;0...</a>
评论 #11794151 未加载
altanoalmost 9 years ago
I just recently started learning Python for the first time, and at some point I switched from playing with 2.7 to 3.x, and my uninformed opinion is that I&#x27;m shocked at how many seemingly completely unnecessary breaking changes there are.<p>Did the parameter names to open()d really need to change? Why did I have to change from io.open() to open() for a stream? Did str.lowercase really need to become string.ascii_lowercase? The number of errors in my toy little program upon upgrading really surprised me.
评论 #11797724 未加载
评论 #11794515 未加载
iconjackalmost 9 years ago
Well I&#x27;m sure this is a naive point of view, but I&#x27;m going to put it out there anyway. It seems there are many Python devotees out there who are lukewarm about Python 3, and quite a few who really don&#x27;t like it at all, hence a slow adoption rate. Right now it seems like the community is fractured along that fault line.<p>Is it too late? Can we back out of the current incarnation of Python 3 and go down another path instead? In other words, turn the slow adoption rate into a plus, call a do-over and mold the new Python into something more people are happy with.
评论 #11794369 未加载
coldteaalmost 9 years ago
Yeah, don&#x27;t hold your breath.
jgalt212almost 9 years ago
Most everything good from Python 3 has been back-ported to 2.7. Except for built in parameterized tests in unittest.<p>Python 3 has the subTest context manager (which looks great)<p><a href="https:&#x2F;&#x2F;docs.python.org&#x2F;3&#x2F;library&#x2F;unittest.html#distinguishing-test-iterations-using-subtests" rel="nofollow">https:&#x2F;&#x2F;docs.python.org&#x2F;3&#x2F;library&#x2F;unittest.html#distinguishi...</a><p>In 2.7 you must use pytest, ddt, nose-paramemterized or dynamically add test methods to a TestCase class at runtime.
评论 #11794296 未加载
Scarbuttalmost 9 years ago
Don&#x27;t really like the tone of this, they are resorting to psychologically tactics now? (btw, I&#x27;m all in for pushing Py3)
评论 #11794122 未加载
asdfologistalmost 9 years ago
People here keep bemoaning the golang designers&#x27; decision to not upgrade their language with things like generics, but suddenly their panties get twisted in a bunch when the Python community actually decides to fix problems in their language.<p>Get off your high horse and upgrade your code. So many people did it before you, and so can you.
评论 #11794318 未加载
评论 #11794342 未加载
评论 #11794311 未加载
DasIchalmost 9 years ago
There are enough large organizations using Python that no doubt at least one will find it to be cheaper and more convenient to continue maintaining a 2.7 interpreter. Dropbox is working on one just to increase performance. PyPy also has due to how it works fundamentally a huge interest in maintaining Python 2.7 support for the forseeable future.<p>You&#x27;ve to be quite naive to believe that Python 2.7 will retire in 2020. It will only fade from popularity slightly faster.
评论 #11794025 未加载
unlinkeralmost 9 years ago
3 Years 10 Months 13 Days 20 Hours 54 Minutes 31 Seconds until a community fork occurs.
评论 #11794273 未加载
评论 #11795184 未加载
评论 #11794255 未加载
评论 #11794169 未加载
Animatsalmost 9 years ago
The amount of effort Python puts into screwing 2.x users is excessive.
评论 #11794059 未加载
评论 #11794028 未加载
评论 #11794165 未加载
omashalmost 9 years ago
I&#x27;m hopeful we&#x27;ll abandon Python 3 instead.
评论 #11794019 未加载
评论 #11794161 未加载