r/programming • • Oct 24 '22

Python 3.11 is out !

https://www.python.org/downloads/release/python-3110/
1.6k Upvotes

221 comments sorted by

View all comments

Show parent comments

15

u/all_is_love6667 Oct 25 '22

Why is it so hard to upgrade a python 2 codebase?

22

u/[deleted] Oct 25 '22

mostly laziness, there are tools that convert ur code to python 3 and then your work will mostly be fixing the small stuff or replacing stuff with a more modern library

51

u/nachohk Oct 25 '22

mostly laziness, there are tools that convert ur code to python 3 and then your work will mostly be fixing the small stuff or replacing stuff with a more modern library

Right, so just an exhaustive audit of the entire codebase, and rewriting everything around a few of the dependencies.

Easy.

Better hope your codebase has some excellent god damn regression tests.

8

u/gigastack Oct 25 '22

For everything JS has done wrong, backwards compatibility is one thing they got right. At least until library authors try to force everyone to adopt modules.

2

u/DaStone Oct 25 '22

Things using nodejs 5.7.0 in production with 12 year old dependencies still works. And if you didn't do anything funky, upgrading is easy. (People do some hack things..... that even breaks this...)

→ More replies (3)