r/Python • • Oct 14 '23

Discussion Has your company standardized the Python 3 version to be used across all projects?

I am asking whether your company has a standard such as all Python projects should use Python 3.10.x or 3.11.x. Or maybe your company might have a standard like all Python projects must support Python 3.9+?

If your company does have a standard like that, what reasoning went behind it? If your company considered such a standard but chose not to do it, why? It would also be great if you could give an estimate of the number of devs/data scientists using Python in your company.

208 Upvotes

184 comments sorted by

View all comments

Show parent comment

2

u/-tott- Oct 15 '23

I’m curious, wouldn’t upgrading all 200 microservices to a newer language version at the same time be a lot of work? Rather than upgrading each individually as needed?

1

u/xiongchiamiov Site Reliability Engineer Oct 20 '23

Upgrading all of them is a lot of work, whether it's all at once or in pieces. It's actually less if you do it at once, because you're already spun up on the change to make and how to test it and what to be aware of, so you can run through each individual one fairly quickly; you'd only save time if you were never going to upgrade a fair number of them. That would be an approach (and I certainly do hate doing upgrades), but when it comes to things like "here's a major vulnerability, we need to upgrade everything right now" I'd really like to avoid jumping several major versions at once because no one had a reason to upgrade this service before.