3 ms·
It’s very likely that project is a security nightmare. Just an OS old enough to support 2.7 would be problematic.
by SteveNuts 10mo ago
It’s very likely that project is a security nightmare. Just an OS old enough to support 2.7 would be problematic.
- gusgus01 10mo agoI just verified. You can install Python 2.7 on an up to date Windows install as well as an up to date Linux install. Python 2.7 hasn't received security updates (or really any updates) in years, but that does not mean it can't still work on an up to date OS.
- uniqueuid 10mo agoThe latest 2.7 seems to have a lot of CVEs (did not verify that manually though) https://www.cvedetails.com/version-list/10210/18230/10/Python-Python.html?sha=3b5532b84e25b1f44172dc39fec9f0731496bdf5&order=1&trc=589 https://www.cvedetails.com/version-list/10210/18230/10/Pytho... IIRC some commercial distros maintain patches for 2.7 but then you're paying for being 15 years behind the future.
- gusgus01 10mo agoYeah, it's been 5 years (almost 6) since python 2.7 stopped receiving security updates, but it does still run on modern OS's. Looking at the list, I'm actually kind of surprised there aren't more CVEs for python 2.7, but if you're only running it locally or on an intranet I could see letting it ride.
- inemesitaffia 10mo agoThere are variants of Python 2.7 that are supported
- nurettin 10mo ago2.7 gave me problems last time I tried to install it from source on redhat. Something about ssl incompatibility.
- jim180 10mo agowouldn't it be faster/safer to upgrade to latest django/python rather than rewrite it in React/Go?
- OoooooooO 10mo agoPython 2 to Python 3 in a Django codebase ... may be a full rewrite anyway.
- dirk27 10mo agoMany people migrated Django projects from 2 -> 3. Certainly something that takes effort, but hardly a rewrite.
- graemep 10mo agoNothing like a full rewrite. I migrated multiple projects, but while there is a significant amount of work involved its a tiny fraction of what a full rewrite would require.
- stuaxo 10mo agoIts fine, I ported quite a few Django libraries to python 3 at the time just because I wanted to use them. 2to3 gets you pretty far and theres not much in the rest.
- elzbardico 10mo agoDid it a couple of times. Not something you can do with your eyes closed, but not even close to the nightmare of upgrading a JS application or upgrading a rails app.