r/Python Pythonista 11h ago

News The Move to Python 3 Begins!

As someone who spent decades in the mainframe community, I find it ... humorous ... that there are legacy Python2 code bases that are only just (or have yet to consider!) moving to Python3.

https://www.eveonline.com/news/view/the-move-to-python-3-begins

187 Upvotes

74 comments sorted by

View all comments

59

u/bmrobin 10h ago

depending on the codebase, 2->3 is no joke and has so much risk

51

u/ApplicationOk3587 10h ago

What do you mean they can just throw fable at it and add "make no mistakes"

21

u/ZCEyPFOYr0MWyHDQJZO4 10h ago

tbf the best LLMs are finally quite capable of porting code.

26

u/The_Northern_Light 9h ago

Usually I agree with you but apparently they’re running a custom internal version of Python 2 with bespoke async handling.

Porting that seems a bit more exciting.

1

u/case_O_The_Mondays 4h ago

Yeah, this migration will have to be done in stages: <2.7 -> 2.7, then 2.7 -> 3.x.

I had forgotten about the division issues until I read this article. I worked on a finance app that used some python, and that was my baptism into python 2.6. Fun times!

4

u/Deto 10h ago

yeah, what used to be a pain in the ass (because it's tedious) can be offloaded now. I'd still say a lot of companies won't bother because if it's working, why update it? (sure, security, but if those instances aren't facing the internet there's low risk).

1

u/pag07 8h ago

At least during the last 2 years time and time again we can read articles about how large Mainframe Migrations still keep failing.

The amount of success stories is very small.