Live data from Hacker News

Python 2 removed from Debian

bugs.debian.org

11–20 of 513 posts

Re: Python 2 removed from Debian

#11

3 years after going EOL, and 14 years after the release of Python 3. Good riddance at long last.

I see the sort of perspective pervasively, but I don’t really understand it. I would guess that most people wouldn’t consider expunging c89 from gcc to be progress, yet this is almost universally the attitude towards python2. What am I missing?

Re: Python 2 removed from Debian

#12

Earlier quoted context omitted.

Yes, it is nice to see the python 3 migration is pretty much done, it really could have happened literally a decade ago! While we're all here: which is the package manager to use?

> which is the package manager to use? pip

My team is using Poetry.

Did you know pip can execute arbitrary code when installing packages?

Re: Python 2 removed from Debian

#13
post #12

Earlier quoted context omitted.

> which is the package manager to use? pip

My team is using Poetry. Did you know pip can execute arbitrary code when installing packages?

I use poetry but regardless as soon as you import a library arbitrary code is executed.

Re: Python 2 removed from Debian

#14

3 years after going EOL, and 14 years after the release of Python 3. Good riddance at long last.

I see the sort of perspective pervasively, but I don’t really understand it. I would guess that most people wouldn’t consider expunging c89 from gcc to be progress, yet this is almost universally the attitude towards python2. What am I missing?

Depends whom you ask, I think. Some would see expunging C in its entirety as a massive progress, and some would say the same for C++, etc.

Re: Python 2 removed from Debian

#15

3 years after going EOL, and 14 years after the release of Python 3. Good riddance at long last.

I see the sort of perspective pervasively, but I don’t really understand it. I would guess that most people wouldn’t consider expunging c89 from gcc to be progress, yet this is almost universally the attitude towards python2. What am I missing?

python2 code was not necessarily forwards compatible with python3. 3 was explicitly attempting to correct some regrettable choices in python2 and wasn't syntax compatible as a result.

The effort for implementation and package maintainers to support both versions was considerable, resulting in some notable packages only supporting one or the other.

In the words of the Python maintainers:

We needed to sunset Python 2 so we can help Python users by improving Python faster.

We released Python 2.0 in 2000. We realized a few years later that we needed to make big changes to improve Python. So in 2006, we started Python 3.0. Many people did not upgrade, and we did not want to hurt them. So, for many years, we have kept improving and publishing both Python 2 and Python 3.

But this makes it hard to improve Python. There are improvements Python 2 can't handle. And we have less time to work on making Python 3 better and faster.

And if many people keep using Python 2, then that makes it hard for the volunteers who use Python to make software. They can't use the good new things in Python 3 to improve the tools they make.

https://www.python.org/doc/sunset-python-2/

Re: Python 2 removed from Debian

#16
post #15

Earlier quoted context omitted.

I see the sort of perspective pervasively, but I don’t really understand it. I would guess that most people wouldn’t consider expunging c89 from gcc to be progress, yet this is almost universally the attitude towards python2. What am I missing?

python2 code was not necessarily forwards compatible with python3. 3 was explicitly attempting to correct some regrettable choices in python2 and wasn't syntax compatible as a result. The effort for implementation and package maintainers to support both versions was considerable, resulting in some notable packages only supporting one or the other. In the words of the Python maintainers: We needed to sunset Python 2 s…

Thanks for taking the time to explain that.

Re: Python 2 removed from Debian

#17
post #4

And not a decade too soon. The Python 2 -> Python 3 migration will be studied for a long time as an example how not to release a new version of your language or library, right next to that Angular thingy. The number of headaches I've had to deal with because of this over the years have just about soured me on the whole Python offering, and I used to be a pretty big fan. Great that Debian finally pulls the plug on it,…

Yes, it is nice to see the python 3 migration is pretty much done, it really could have happened literally a decade ago! While we're all here: which is the package manager to use?

I've sort of bypassed the whole package manager thingy by using 'Anaconda', it's served me very well so far by insulating me from those particular gotchas.

https://www.anaconda.com/

Some would consider it cheating but I haven't got enough hours in the day. If I were to write some ad copy for Anaconda it would be 'in several years of frequent use this particular user didn't have to resolve a single conflict, it all just worked'.

Which runs counter to just about all of my other experiences with Python and its package managers/distributions/toolchains, some of those stories would end with 'and as a result the whole server was hosed starting from what should have been a routine certificate update' and other such nice adventures.

Re: Python 2 removed from Debian

#19

print "goodbye, sweet prince" I've been slowly porting a lot of my legacy code from 2 to 3 on an as-needed basis, there's a few bits though that are just too huge/crusty/etc that they will never get ported.

Doesn't this say something about the language if it's been so difficult for people to migrate from 2 to 3? Yes, it was a major version change, but it doesn't bode well for arguments that Python is a good language to do long-term, maintainable, and large-scale development. Sure, now things are "settled" with 3, but Python continues to get more features. It just doesn't look good for the language if even doing a language version migration was a literal brick wall for so much of the community.
Post reply on HN