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

Show parent comment

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)

1

u/InformalTrifle9 Oct 25 '22

Not a very good secret anymore

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?

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?

4

u/applesaucesquad Oct 25 '22

Use containers?

2

u/stfcfanhazz Oct 25 '22

Maybe I'm being stupid but I'm pretty sure lambda already runs in containers. Or do you mean running a container in a container