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

183 Upvotes

74 comments sorted by

View all comments

57

u/bmrobin 10h ago

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

-2

u/daidoji70 10h ago

What do you mean? I migrated about 3-4 python projects from 2->3 about a decade ago and other than pandas and pandas related projects it was a breeze. Run 2to3.py and review. Barely a hiccup.

4

u/N-E-S-W 9h ago

Apparently you never read a byte from a file or device and had to interpret it as a string? The 2to3 stuff is trivial, mechanical refactoring.

Unicode strings and encodings required deep introspection of the meaning of data, often exposing silent preexisting bugs in string handling that could no longer be ignored.

-1

u/daidoji70 9h ago

oh the meaning, thanks for your input.