Skip to content

96 comments

I'm the dev/maintainer of a relatively popular python project (which is also in the community repo), and there's one guy who has forked it once we dropped support for py2 in December 2020 (almost a year after its end of life) and he's been updating his fork and patching upstream commits almost every single day. Must've been a thousand commits now or so with a shitton of backports because of syntax and API incompatibilities, or missing APIs in the python standard library.

I can only shake my head when looking at this effort and unnecessary mess. This isn't even justifiable for embedded or special-case devices which are running this python code, because Python 3 should be available even there. And running code on ancient python 2 builds comes at the risk of all the unpatched security issues (in python itself as well as the dependencies in use), and there have been a couple of them already since its EOL.

239 points

Imagine spending the same ammount of effort lifting/changing whatever system that enforced Py2 :)

77 points

The sad part is that this person made lots of contributions prior to the py2 support removal and they've pretty much stopped contributing after forking the project.

If I wouldn't know the reasons for wasting time on maintaining a py2 fork, I would say that it was some kind of py2 fetish or a fetish for keeping old code alive, but it's most certainly because there are people who are running the project on some TV boxes/receivers/whatever where the hardware vendor has locked down the system and doesn't maintain it anymore. Sounds great if you want to be part of a botnet with all these security issues being unpatched.

81 points

glad to see this TBH. I am sad we can't just deprecate all the python 2 tutorials on youtube / websites out there too

61 points

The pain when you're looking for a solution, find exactly what you need, and it's specific to python2 and nobody updated it for python3.

12 points

If you really need python2 you should preferably just use pypy (not pypy3), pypy is still there in repos.

39 points

Keeping it or having python 2 into your code will highly cost of time and money. Imagine updating your code into python 3πŸ’€

19 points

Wait I'm confused, do you think this is good or bad? Either way updating to python 3 is not optional now irregardless of what Arch does.

24 points

"Irregardless" is a double negative, so it actually means that whatever comes before it in the sentence does depend on what comes after. The word you want is "regardless" - literally "without regard".

8 points

when the OS is in EOL stage, it becomes prone in security vulnerabilities (unless you're an expert that who compiled his own system and you may wonder what does updates for) same in programming language. (not really in the language but in the structure of the code)

6 points

What's the harm in keeping them? Sorry

6 points

Keeping Python 2 would encourage people to continue using it.

78 points

For most people, waste of disk space. For any critical program that use it, since their is no more update from upstream, it is considered a security risk. Best to migrate from packages that required python2.

58 points

Python 3 has been out for the better part of 20 years now? It took 10 years for Python 3 to gain traction, and frustrated, I dropped out of Python development as a result.

It is high time to put Python 2 to bed already. I am not aware of this reticence to upgrade with any other computer language.

39 points

It's because essentially no other language was dumb enough to be as incompatible with its prior version as python 3 was.

1 points

Because not in every situations it makes sense. Sure, for applications that are in production, it does make sense, but for other things, it depends.

One thing are scripts: python is a scripting language, and it was used for a lot of years to write scripts. What if you have a ton of python2 scripts that still work perfectly fine? What is the value (that there must exist to justify spending time, and thus money) that will give updating to python3?

Also, for things that are under maintenance? What if I need to work on a legacy project to fix a bug that is written in python2, or that requires python2 as a build dependency? Do I have to spend days porting all the python2 to python3?

What even things that you have no control of? How many software, scripts, projects require some piece of python2 to work, build or do stuff?

To me not having python2 in the repositories is not a good decision...

-7 points

Python 2 has been EOL since 2020, was supposed to go EOL in 2015 (but didn't because too many people were still using it), and was deprecated in 2008.

EOL means it will receive no more updates - not even security updates. Thus, having anything using it is a security risk.

Arch has upgraded all packages from the main repo to use Python 3 - thus, there is no reason for Python 2 to remain in the official repos. If some AUR package needs Python 2, then someone will put it in the AUR (hopefully along with appropriate disclaimers that the software is unmaintained).

4 points
unknown author

Deleted before we saved it.

-3 points
unknown author

Deleted before we saved it.

-10 points
unknown author

Deleted before we saved it.

-12 points
unknown author

Deleted before we saved it.

-13 points
unknown author

Deleted before we saved it.

-19 points

this will break maya 2022.3 python 2 script console, why does arch devs doesnt care about backwards compatability?.

at least as soon ive seen it ive downloaded the package,now its gone from the regular repo.

-76 points
  1. Maya is an AUR package.

  2. Said console uses Python 3 by default.

  3. Python 2's end of life was first announced in 2008. It has been officially dead since January 2020.

99 points

why does arch devs doesnt care about backwards compatability?.

Hi. For 300€ a month I will provide you with a Python2 package that is compatible with the current maya version packaged in AUR. I even toss in 48h response time telephone support in multiple languages.

Where should I send the invoice?

71 points

you're welcome to maintain abandonware yourself in your own repo

46 points

Indeed, I happily maintain Python 2 for an internal fork of Blender 2.49b.

Luckily Python is actually quite easy to maintain.

-5 points

Because Python2 has been unsupported for more than 2.5 years

21 points

Arch is not the only distro that starting to drop python2. Ubuntu is also doing it, albeit very slowly. Backward compatibility cannot be done by distro packagers and maintainers alone. They can only do so much after upstream (python developers) has declared python2 EOL.

And consider that python programs often break and need patching from just updating between minor version, I don't think this is a surprise.

20 points

You can upload the dropped packages onto AUR and maintain them there.

9 points

If you really need python 2, install it yourself locally using ASDF to avoid polluting your entire system.

5 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←orβ†’
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.