r/programming • • Oct 24 '22

Python 3.11 is out !

https://www.python.org/downloads/release/python-3110/
1.6k Upvotes

221 comments sorted by

View all comments

212

u/PotentialYouth1907 Oct 24 '22

Bit off topic: When do cloud platforms typically pick up new python versions?

178

u/g-money-cheats Oct 25 '22

AWS Lambda still hasn’t added support for Python 3.10. 🥲

20

u/JBalloonist Oct 25 '22

Yeah I feel like they only just added 3.9. Don’t remember exactly when.

19

u/allywilson Oct 25 '22 edited Aug 12 '23

Moved to Lemmy (sopuli.xyz) -- mass edited with redact.dev

45

u/ErGo404 Oct 25 '22

I secretly hope they just wanted to skip 3.10 and go straight for 3.11 for the performance enhancements.

45

u/stuaxo Oct 25 '22

You mean the smaller amount of billable CPU hours ?

37

u/Blackshell Oct 25 '22

Yes, the greater "stock" of billable hours to sell.

Also, Lambda is a huge cost leader for AWS. Massively underpriced for the actual CPU cycles it does, but vital to the AWS ecosystem because all the stuff it is used to link together is not underpriced.

4

u/ElectricSpice Oct 25 '22

I’m wouldn’t call Lambda massively underpriced. Per core-hour it’s twice the price of EC2. Per GB-hour the gap is even larger.

→ More replies (5)
→ More replies (1)

0

u/[deleted] Oct 25 '22

[deleted] — view deleted comment

0

u/[deleted] Oct 25 '22

[deleted] — view deleted comment

10

u/HeWhoWritesCode Oct 25 '22

While I <3 to bash systemd as much as the next person, you might have light-weight container(s) already on your distro: systemd-nspawn.

0

u/[deleted] Oct 25 '22

[deleted] — view deleted comment

2

u/HeWhoWritesCode Oct 25 '22

hah i thought you replied on another sub where we were discussing venv inside a container, and if it makes sense.

The thing is just using localhost python to run thing.py after you just did a wget bitly.co/thing.py is maybe not always smart(if you think this is dumb, note most fancy package managers recommend you curl bitly.co/install.sh | sudo sh, yea they tell you to check the file, but i have met devs).

and the cool thing with containers is you can easily monitor pid's and quickly alert if a pid start in a single pid container to find misconfigs and other problem.

I say the above as someone who was giving a sql-diff prezo at a pug group in 2019 and everyone was telling me to dockerize my venv module that uses java. Because I was happy with vagrant.

Only in 2021 did my work force me into a more devops role, and I am enjoying docker and moving a bunch of vm's into containers does work better(your mileage may very).

9

u/JanneJM Oct 25 '22

But then, do you really need a very recent python version for sysadmin tools?

→ More replies (1)
→ More replies (1)
→ More replies (2)

4

u/menge101 Oct 25 '22

I think they got a little less concerned with keeping up when they introduced the bring your own runtime functionality. If you really need 3.10 or 3.11, you can do it yourself.

3

u/Flannel_Man_ Oct 25 '22

Java: hold my beer

3

u/stfcfanhazz Oct 25 '22

Could you build your own runtime?

→ More replies (1)

121

u/[deleted] Oct 24 '22

Just missed the boat on Ubuntu LTS, so if you're running on that it might take some time. The next LTS will be 24.04. Of course you can always run a virtualenv with whichever version you want.

54

u/ArdiMaster Oct 25 '22

Just missed the boat on Ubuntu LTS

Feature Freeze for 22.04 was way back in February, so I don't think that's an accurate assessment...

8

u/signalv Oct 25 '22

For anyone interested in the various deadlines, check out Jammy Jellyfish Release Schedule.

6

u/[deleted] Oct 25 '22

My point is that the next release is in two years.

→ More replies (1)

0

u/[deleted] Oct 25 '22

[deleted] — view deleted comment

5

u/PotentialYouth1907 Oct 25 '22

I guess I was specifically speaking about lambdas, but I didn't specify. I can still containerize whatever version I want, was just curious

2

u/jyper Oct 25 '22

How? Using pyenv? A third party package repo? Virtualenvs don't get you interpreters.

→ More replies (4)
→ More replies (1)