r/programming • • Jun 27 '18

Python 3.7.0 released

https://www.python.org/downloads/release/python-370/
2.0k Upvotes

383 comments sorted by

View all comments

114

u/[deleted] Jun 28 '18

I wish I could use it, but so many APIs and software packages my company uses are still on 2.7 ...

0

u/[deleted] Jun 28 '18

[deleted]

41

u/[deleted] Jun 28 '18

For example: anything from Autodesk

32

u/[deleted] Jun 28 '18

Or Docker. I’d love to use Python 3 but have to specify pip2

20

u/Aeon_Mortuum Jun 28 '18

Facebook's React Native also requires a Python 2 installation

13

u/Klathmon Jun 28 '18

that's more google's fault for gyp not working with python 3.

4

u/p2004a Jun 28 '18 edited Jun 28 '18

But Google mostly stopped using GYP. They moved chromium and other stuff to GN so why would they want to pour time into making GYP better? And it's open source so if you care, you can improve it and add Python 3 support, that's what open source is about, right?

6

u/Klathmon Jun 28 '18

And IIRC the node group is hard at work at it (as they are probably the biggest gyp user at this point), but the more likely outcome is that node will move away from gyp just like google did (there's a reason they chose to move to another system rather than try to update gyp).

I honestly don't mind gyp using py2, it does require a separate install over everything else on the box, but it works well once setup and I think breaking backwards compat with all node native modules to upgrade to py3 would cause more issues than it would solve (and could lead to the same split we saw with py2 and py3).

→ More replies (1)

66

u/[deleted] Jun 28 '18

Yes really. Mine too. Companies have a lot of old code and there's not much incentive to upgrade it to Python 3 for basically zero benefit.

Actually, it's a big risk because these scripts are generally "tested" by using them and reporting bugs. Upgrade to Python 3 and due to its dynamic typing you're probably going to introduce a load of bugs.

Also I have noticed even some big new projects, e.g. Tensorflow, target Python 2 first and then add Python 3 support later.

The idea that the 2/3 mess is over is unfortunately not true.

31

u/vivainio Jun 28 '18

The "zero benefit" is not true anymore

20

u/peeves91 Jun 28 '18

The old motto "if it ain't broke don't fix it" is applied heavily here.

71

u/[deleted] Jun 28 '18

It kind of is, if the code works fine and isn't being updated, which is the case for a lot of corporate code.

→ More replies (16)

7

u/remy_porter Jun 28 '18

I'm writing software for a Large Tech Company™ as an outside contractor- and I have to communicate with a messaging system, and they have two libraries I could use to do it: JavaScript and Python2.

And the Python lib is a mess.

→ More replies (10)

2

u/agumonkey Jun 28 '18

I've seen some news about Google AppEngine going py3 too .. would only accelerate things.

2

u/Urtehnoes Jun 28 '18

For my company, it's all of our django apps that are still on ancient django (like 1.5 or earlier). It's such a slog to upgrade them to all the newer versions, especially because the newest django (2.0+) doesn't friggin support our Oracle version. It's taken me months now for just one app to upgrade/re-write it in Python3.6/Django 1.11. Hopefully 3.7 doesn't require many changes.

1

u/[deleted] Jun 28 '18

Fuck, if ESRI can make the transition, so can everyone else.

0

u/[deleted] Jun 29 '18

[deleted]

→ More replies (1)

6

u/dagmx Jun 28 '18

What libs do you depend on that aren't on 3 yet?

41

u/[deleted] Jun 28 '18

Biggest example: any software package from Autodesk

17

u/dagmx Jun 28 '18

Sure, I work in cg too but they're shifting to python 3 for 2020 and there should be a preview release next year. We'd have a release sooner but the switch from qt 5.6 to 5.12 was deemed more important.

It's coming soon and we should be bracing for it.

32

u/[deleted] Jun 28 '18

It's coming soon and we should be bracing for it.

Nothing to brace for here, more like eagerly awaiting.

yes, it's coming in 2020...you know, cuz 2.7 is EOL. Nothing like waiting until you're literally forced to update.

2

u/dagmx Jun 28 '18

Well we still need to brace for it in terms of porting studio pipelines. Idk about your studio, but we have a lot of code to go through to get over that hurdle.

The qt4 to qt5 port was difficult enough.

→ More replies (3)

4

u/[deleted] Jun 28 '18

There’s still a good amount of commercial software that’s python 2, at least that I’ve randomly come across. There’s probably little incentive for some of the companies to migrate until they have to or until a customer that has enough leverage requests or demands it.

Shitty, yes.

1

u/13steinj Jun 28 '18

Reddit's backend (even with the redesign) runs on Pylons, and would need a decent amount of rewrite to work with Pyramid, not to mention Py3.

→ More replies (24)