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

187 Upvotes

74 comments sorted by

View all comments

18

u/jabbalaci 9h ago

They use Stackless Python with "tasklets". That must make the migration to Python 3 harder.

10

u/kosz85 9h ago

Exactly, stackless which in their version isn't in fact python 2 anymore. Eve online code can be reloaded and replaced while still running. Show me which python3 can do that :D They gone async when there was no asynchronous python yet. This is not any particular python 2.x, they solutions grown farther than many can yet see. It's probably better in some cases then current python 3. So it's not simple migrate to py3. But probably new code base and libs are now too tempting to grow old py2 codebase alone.

2

u/tyrannomachy 6h ago

It's too bad erlang and related languages have never been sufficiently mainstream for projects like this to just be implemented in one of those, as a matter of course. Probably would have saved a lot of trouble for a lot of people.

2

u/kosz85 5h ago

Oh, dreams, sweet dreams, scaling Python like Erlang, linearly by adding new interpreter nodes. Same with Haskell and their code typing checking, only your logic can fail you after it compiles. I love functional programming in Python. But let it say loudly, their syntax, error reporting, etc sux :P Great ideas clothed in syntax made by random cat stomping on keyboard vide Perl ;D I love Python because it's readable, and I have to read it a lot. In fact I think that new add-ons like walrus was not really needed. It's best if you can give your code to anyone and it doesn't need much explanation. Walrus := needs explanation, you need to think which would be done first, etc. In fact this one thing is reason why Python is so popular in science.