r/programming • • Aug 25 '26

EVE Online: The Move to Python 3 Begins!

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

290 comments sorted by

View all comments

Show parent comment

33

u/Radixeo Aug 25 '26

It's probably the best use case for LLMs in programming. There's millions of examples in the training data and there's no better "spec" than a working code base + tests.

11

u/Technical_Income4722 Aug 25 '26

For most python 2 code you can just run `2to3` to upgrade from 2 to 3. But I reckon an LLM will help clean it up from there.

8

u/Lord_Nerevar_Reborn Aug 26 '26

the problem lies with any third-party dependencies that have changed over the last 20 years. i’m overhauling an ancient django project right now, and 2to3 was only step 1 of 1000

10

u/Murky-Relation481 Aug 25 '26

It's probably what the LLM will try to do by default. They're pretty crafty at using tools.

1

u/Memitim Aug 25 '26

Especially since so many of the cleanups after a 2to3 migration are stock standard activities. Perfect for robotic remediation, especially if it has a functional CI pipeline to perform continuous testing and resolution with. Once new outputs equal old outputs, version and reassess until done.

13

u/JackandFred Aug 25 '26

Yeah if you have a good test suite (which is a big if) that’s not really a bad use case. But ideally you’d have someone familiar with the code base not an intern overseeing haha.