r/Python • • May 27 '14

Python 3 is fine | Sealed Abstract

http://sealedabstract.com/rants/python-3-is-fine/
234 Upvotes

96 comments sorted by

View all comments

57

u/Phild3v1ll3 May 27 '14

Couldn't agree more, I maintain multiple scientific software packages with a combined total of ~20k lines. Last week we decided to make the jump from 2 to 3. Within about a day we managed to port two of our projects with backwards compatibility. The third party libraries are there, 2to3 ported something like 80% of codebase correctly and the rest was trivial to fix. I feel for people who are stuck with large Python 2 codebases but if your employer can't, over the span of 5 years, devote some man-hours to make your system future proof, then blame them not Guido or the volunteers who have made the wonder that is Python in the first place.

4

u/[deleted] May 28 '14

Interesting example. I am in a similar boat (but with more LOC). The last time I tried to switch I was immediately hit with numpy / scipy bugs that made me think I must be the only one using those libraries with Python3.

How much of your stack is native code?

4

u/[deleted] May 28 '14

Example of bugs? I've never had any issues with numpy moving to python3.

4

u/[deleted] May 28 '14

Off the top of my head, crashes in the masked array module, crashes in the scipy optimization functions, going to and from pandas / numpy loss of precision (our unit tests failing).

0

u/[deleted] May 29 '14

Thanks, I will have to watch out for the precision bug.