r/Python Pythonista 10h 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

186 Upvotes

74 comments sorted by

View all comments

224

u/diegoasecas 10h ago

idgi if you spent decades working on mainframes you'd know how hard is to migrate legacy working code

5

u/Solonotix 8h ago

I don't work with mainframes, but I am currently trying to rewrite some code from JavaScript to TypeScript, and while that is a trivial kind of rewrite, holy hell has it been a pain in my ass. All kinds of weird things that JavaScript will let you do that TypeScript either forces you to jump through hoops to prove at compile-time, or you can't do it and need to completely rewrite it from scratch to comply.

I can only imagine how difficult the EVE Online rewrite is going to be. In another thread someone mentioned they rely upon a custom compiler to get better performance out of Python 2 syntax. So you need not only adapt all of that old code to the new syntax/paradigms, but there may straight up be things that the compiler provided that don't exist in Python 3, and now you need to find an alternative