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.18, the last release of Python 2

339 pointsby vishnu_ksabout 5 years ago

22 comments

xscottabout 5 years ago
For those with Python 2 baselines that aren&#x27;t (or will never be) ported, PyPy will support version 2 basically forever [0]. PyPy supports a huge number (but not all) of Python packages, including numpy [1]. Moreover, PyPy is significantly faster in many cases [2], and for the numerical types of things I like to write [3], it&#x27;s amazingly faster.<p><pre><code> &gt; time pypy mandel.py &gt; pypy.pgm seconds: 0.318101 real 0m0.426s user 0m0.396s sys 0m0.013s &gt; time python2 mandel.py &gt; python2.pgm seconds: 30.141954 real 0m30.156s user 0m30.136s sys 0m0.003s </code></pre> That&#x27;s just a silly Mandelbrot example, but for numerical algorithms like this PyPy is nearly 100 times faster than Python2, and that includes startup cost for the JIT!<p>I&#x27;m not in any way associated with the PyPy project, but I can&#x27;t help but believe a sane world would&#x27;ve moved from Python to PyPy in the same way everything moved from Brandon Eich&#x27;s original JavaScript interpreter to the modern JIT ones like V8.<p>[0] <a href="https:&#x2F;&#x2F;doc.pypy.org&#x2F;en&#x2F;latest&#x2F;faq.html#how-long-will-pypy-support-python2" rel="nofollow">https:&#x2F;&#x2F;doc.pypy.org&#x2F;en&#x2F;latest&#x2F;faq.html#how-long-will-pypy-s...</a><p>[1] <a href="http:&#x2F;&#x2F;packages.pypy.org&#x2F;" rel="nofollow">http:&#x2F;&#x2F;packages.pypy.org&#x2F;</a><p>[2] <a href="https:&#x2F;&#x2F;speed.pypy.org&#x2F;" rel="nofollow">https:&#x2F;&#x2F;speed.pypy.org&#x2F;</a><p>[3] <a href="https:&#x2F;&#x2F;godbolt.org&#x2F;z&#x2F;J9Xwp6" rel="nofollow">https:&#x2F;&#x2F;godbolt.org&#x2F;z&#x2F;J9Xwp6</a>
评论 #22930916 未加载
评论 #22928399 未加载
评论 #22931547 未加载
评论 #22930728 未加载
评论 #22928372 未加载
评论 #22928211 未加载
评论 #22932535 未加载
评论 #22928148 未加载
评论 #22928125 未加载
jillesvangurpabout 5 years ago
Python is currently one of the most successful languages out there. Most of the growth at this point is coming from python 3. So, from that point of view, it&#x27;s been a huge success.<p>If at this point you are still stuck on 2.7; you probably don&#x27;t care a lot about updates in any case; including point releases. It&#x27;s been well over a decade since it was made clear that this was going to end. So, IMHO the impact to remaining 2.7 users is minimal. They were in any case extremely conservative updating and are probably also running lots of other outdated stuff like Red Hat &#x2F; Ubuntu versions that long dropped out of LTS, etc. That&#x27;s fine and valid but at this point you shouldn&#x27;t be surprised that you are on your own. If you didn&#x27;t plan for this, that&#x27;s on you.<p>From a security point of view that just means you probably don&#x27;t want to run unprotected 2.7 servers running e.g. a web server. But otherwise it&#x27;s fine if you shield it a bit. Lots of python is more about other types of jobs where the impact of security vulnerabilities is much less.<p>And, I&#x27;m sure that if there&#x27;s demand, somebody might actually step up to do the occasional patch release if it is really needed. This has also happened in the Java world where several companies provide support for openjdk 6, 7, and 8 where Oracle no longer supports that (v8 stopped getting public updates already; you can still pay for some extended support but that too is being ramped down). I imagine, e.g. Red Hat might step up here as they seem to have continued to ship this for quite long and their LTS cycles might out run the python 2.7 cut off date.
wiremineabout 5 years ago
This isn&#x27;t a knock per Perl, but looking back, it&#x27;s really interesting to see how the two communities handled their respective transitions: Python 2 to Python 3, and Perl 5 to Perl 6 (now called raku [1])<p>I say it isn&#x27;t a knock because I think they were equally fine with the goals: Perl was looking to make a bold break towards an unknown future [2], and Python wanted a very slow and sustainable migration.<p>I&#x27;m glad to see Python 3 go mainstream, I&#x27;m glad that Python 2 succeeded so well, and I&#x27;m glad there are segments of computer science that still throw mugs and aim for the moon.<p>[1] <a href="http:&#x2F;&#x2F;blogs.perl.org&#x2F;users&#x2F;ovid&#x2F;2019&#x2F;10&#x2F;larry-has-approved-renaming-perl-6-to-raku.html" rel="nofollow">http:&#x2F;&#x2F;blogs.perl.org&#x2F;users&#x2F;ovid&#x2F;2019&#x2F;10&#x2F;larry-has-approved-...</a><p>[2] <a href="https:&#x2F;&#x2F;www.nntp.perl.org&#x2F;group&#x2F;perl.packrats&#x2F;2002&#x2F;07&#x2F;msg3.html" rel="nofollow">https:&#x2F;&#x2F;www.nntp.perl.org&#x2F;group&#x2F;perl.packrats&#x2F;2002&#x2F;07&#x2F;msg3.h...</a>
评论 #22929866 未加载
csande17about 5 years ago
If you&#x27;re interested in what actually changed in this update, the release notes are here: <a href="https:&#x2F;&#x2F;github.com&#x2F;python&#x2F;cpython&#x2F;blob&#x2F;2.7&#x2F;Misc&#x2F;NEWS.d&#x2F;2.7.18rc1.rst" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;python&#x2F;cpython&#x2F;blob&#x2F;2.7&#x2F;Misc&#x2F;NEWS.d&#x2F;2.7.1...</a>
MattGaiserabout 5 years ago
Still know a heck of a lot of people using it. Even know one researcher using it for a new project.<p>It will be decades before the final Python 2 program goes offline.
评论 #22927735 未加载
评论 #22927806 未加载
评论 #22927605 未加载
评论 #22927606 未加载
评论 #22927555 未加载
评论 #22927534 未加载
评论 #22928616 未加载
评论 #22927538 未加载
评论 #22927623 未加载
评论 #22927552 未加载
linsomniacabout 5 years ago
We&#x27;ve switched off Python 2, but I really miss it. For a glorious several years we were done with &quot;production has Python X.Y, but the code needs X.Z&quot; and always chasing the latest minor version on LTS OS releases.<p>But now we&#x27;re back on that treadmill...
评论 #22927728 未加载
评论 #22941993 未加载
amenodabout 5 years ago
I still occasionally mistype `print s`.<p>RIP, python2, you will be missed. And a big thank you to all the contributers who have kept it alive for so long!
评论 #22928662 未加载
jimbob45about 5 years ago
Is this the most infamous failure of a version upgrade ever in software history?
评论 #22927851 未加载
评论 #22927786 未加载
评论 #22927751 未加载
评论 #22931788 未加载
评论 #22927856 未加载
评论 #22935300 未加载
评论 #22927799 未加载
评论 #22927731 未加载
评论 #22940570 未加载
评论 #22927893 未加载
hypewatchabout 5 years ago
Python 2 had a great run but python 3 is more than ready for prime time. It was pretty bad for a while but since 3.6 it’s been awesome!
评论 #22931966 未加载
talentedcoinabout 5 years ago
Finally. Please let it die.
评论 #22927811 未加载
评论 #22928758 未加载
Qub3dabout 5 years ago
My personal thoughts on the matter aside, here is an informative post from Brett Cannon on why the Python 2&#x2F;3 split happened:<p><a href="https:&#x2F;&#x2F;snarky.ca&#x2F;why-python-3-exists&#x2F;" rel="nofollow">https:&#x2F;&#x2F;snarky.ca&#x2F;why-python-3-exists&#x2F;</a>
评论 #22929384 未加载
The_Colonelabout 5 years ago
I&#x27;m curious if there&#x27;s going to be some community supported fork.<p>Software using Python 2.7 won&#x27;t magically disappear and I believe there is going to be a demand after fixes.<p>(I know about Tauthon but I don&#x27;t think it applies here ...)
评论 #22928940 未加载
评论 #22927794 未加载
评论 #22928191 未加载
评论 #22927809 未加载
评论 #22932492 未加载
评论 #22927979 未加载
评论 #22928411 未加载
gonationalabout 5 years ago
I love so much about Python 3.<p>Python 2 has paid the bills for over a decade, but I love writing Python 3.8 so much more. I even love the walrus operator. We’re in the process of upgrading, finally.
yjftsjthsd-habout 5 years ago
I thought the last release was already past; wasn&#x27;t the python 2 series supposed to have ended on January 1st? Or did I misunderstand that?
评论 #22927602 未加载
评论 #22927563 未加载
评论 #22927572 未加载
评论 #22927600 未加载
评论 #22932577 未加载
评论 #22927771 未加载
memcoabout 5 years ago
Trying to click the release notes for it on <a href="https:&#x2F;&#x2F;www.python.org&#x2F;downloads&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.python.org&#x2F;downloads&#x2F;</a> seems to do nothing. I&#x27;m working on legacy apps running on 2.7 so I&#x27;m eager to see what&#x27;s included.
评论 #22932377 未加载
ghshephardabout 5 years ago
Has anyone seen a recent survey of which version of python developers are starting projects with?
评论 #22932139 未加载
评论 #22929413 未加载
评论 #22927812 未加载
评论 #22927915 未加载
tempodoxabout 5 years ago
Mac vim(1) still requires Python-2. I&#x27;m not holding my breath.
at_a_removeabout 5 years ago
I am still on Python 2 due to complex vendor reasons. Probably will be for a couple more years. I wish folks were a little more understanding that edge business cases exist that they might not have considered; it isn&#x27;t all greenfield development.
评论 #22940603 未加载
otabdeveloper4about 5 years ago
&gt; Python 2.7.18, the &quot;last&quot; release of Python 2<p>Fix&#x27;t it for ya.
phendrenad2about 5 years ago
I expect many forks.
评论 #22928084 未加载
评论 #22928130 未加载
tedunangstabout 5 years ago
And now for python 2.8. From somewhere, if not python.org.
评论 #22929370 未加载
评论 #22927756 未加载
评论 #22935389 未加载
loegabout 5 years ago
Perhaps, but only because the PSF wields the Python trademark to prevent people who want to continue releasing the Python 2 language from doing so:<p><a href="https:&#x2F;&#x2F;github.com&#x2F;naftaliharris&#x2F;tauthon" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;naftaliharris&#x2F;tauthon</a>
评论 #22927804 未加载
评论 #22927801 未加载