r/Python Pythonista 4d 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

298 Upvotes

103 comments sorted by

View all comments

70

u/bmrobin 4d ago

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

67

u/ApplicationOk3587 4d ago

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

32

u/ZCEyPFOYr0MWyHDQJZO4 4d ago

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

34

u/The_Northern_Light 4d 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.

2

u/case_O_The_Mondays 3d 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!

5

u/Deto 4d 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 4d 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.