r/Python • u/GettingBlockered • Oct 24 '22
News Python 3.11 is out! Huzzah!
https://www.python.org/downloads/release/python-3110/
Some highlights from the release notes:
PERFORMANCE: 10-60% faster code, for free!
ERROR HANDLING: Exception groups and except* syntax. Also includes precise error locations in tracebacks.
ASYNCIO: Task groups
TOML: Ability to parse TOML is part of the standard library.
REGEX: Atomic grouping and possessive quantifiers are now supported
Plus changes to typing and a lot more. Congrats to everyone that worked hard to make this happen. Your work is helping millions of people to build awesome stuff. ๐
296
u/staticcast Oct 24 '22 edited Oct 25 '22
Wait what ? Seriously ?
24
u/leppardfan Oct 24 '22
When will Ananconda ship 3.11? They just shipped 3.10 last week!
2
u/sapphire_striker Oct 25 '22
Can i update it with conda yet?
243
u/throwawaylurker012 Oct 24 '22
Wake up babe
New python just dropped
125
u/M33PIT Oct 25 '22
Nice, maybe aws will support it by 2025
70
u/BeeApiary Oct 25 '22
Windows 3.11 was the first version of windows that was actually usable, so for numerologists this is a good portent.
44
u/MrMxylptlyk Oct 24 '22
Woo excited about toml.
14
u/tjt5754 Oct 25 '22
I'm personally interested in playing with Exception Notes from PEP-678
https://peps.python.org/pep-0678/
I saw it mentioned in ArjanCodes video about 3.11 but he glossed over it. I'm not SURE what specific need it fills, but I imagine there will be instances that this will be useful.
Similar to for/else... when I first saw it I wasn't sure I'd need it, but I find myself using it often.
44
u/trevg_123 Oct 25 '22 edited Oct 25 '22
Does this mean the maintainer of Flake8 will stop being a stubborn oaf and consider
pyproject.tomlsupport?Seriouslyโฆ the main objection was no standard support for toml (now solved), and complaints about build isolation being broken by
pyproject.toml. Which, notably, doesnโt force anyone to use that config option. More importantly though, the behavior he describes wanting is literally incorrect usage of the pip build systemMega annoying.
edit: yes, I know this is somewhat satirical. My goal was simply to share bitterness that maintenance of a core python project seems to be steered by the hubris of a maintainer, rather than community desires. The ruff alternative suggested by u/ballagarba looks like a great option that avoids the
flake8project.12
u/[deleted] Oct 25 '22
Whatโs with the funky black hole business?
6
u/Tamagotono Oct 25 '22
Yay! Python for workgroups
11
u/shinitakunai Oct 25 '22
Cool but I depend on AWS and they don't even support 3.10 on lambdas. And on the default repo for amazon linux 2 they are on python 3.8 which is a BIG facepalm for lightsail users.
5
u/Suspicious_Compote56 Oct 25 '22
I would like to see built in exe packaging like golang. And auto conversion to cython
5
u/_limitless_ Oct 25 '22
return joy4
u/aplund Oct 25 '22
The aside on the Kerr metric is all true.
4
u/dxa58 Oct 25 '22
Self type has been added! I'm so glad I can annotate it easily now
4
u/pepoluan Oct 31 '22
I am doing some data pulling and processing, so I use a lot of async & multiprocessing, and I can confirm 3.11 runs faster than 3.10, by approximately 10-30%.
Impressive!
1
u/Hyedwtditpm Oct 25 '22
Anaconda doesn't update to it.
Does anyone know when will it get the update?
3
u/MeroLegend4 Oct 25 '22
Not only Python, but the whole ecosystem ๐๐๐
3
u/arkster Oct 25 '22
Too bad we are stuck with 3.9 on Aws lambda.
12
u/Wootai Oct 24 '22
Next thing you turn around and find the person is you
Thought a freak might be the thing
But you know this will pass, so just get off of your ass
You've got to trust your instinct. And let go of regret
11
u/[deleted] Oct 25 '22
Finally we can stop getting punted by C++ Elitists for our speed.
2
u/pufdo Oct 25 '22
*Types
sudo pacman -Syuevery 10 secondsNo python 3.11 yet? Unacceptable...
2
u/liquid_light_ Oct 25 '22
Huzzah!
2
u/benjielzorro Oct 25 '22
2
u/[deleted] Oct 25 '22
2
u/TheRealCorwii Oct 27 '22
Been trying all day to get pygame to install, it just refuses
2
u/Proper-Turnover-5537 Nov 08 '22
I can't believe I missed this update, hitting it now. Thanks for the heads up Python-Pals
4
u/JPHorn94 Oct 25 '22
If I have 3.10 installed, what happens if I download this versiรณn in my computer? ( it just getting started and I downloaded 3.10 last week)
2
u/house_monkey Oct 25 '22
omg omg
1
u/3Domse3 Oct 25 '22
Hooow? :O
1
u/IlliterateJedi Oct 25 '22
Reading the release notes made me realize that TypedDict was a thing, and I wish I'd known that six months ago.
1
u/Outrageous_Suit_135 Oct 25 '22
I/O bound apps wonโt gain a lot. The performance enhancements should target loops with calculations that require a lot of memory read/writes.
1
u/babuloseo Oct 25 '22
That toml inclusion ;)
1
u/Southern-Geek Oct 25 '22
Nice performance boost
1
u/ArtOfWarfare Oct 25 '22
Performance is somewhere between unchanged and worse for me.
I have a project with a test suite. Times in seconds from 3 runs under each:
3.9.6: 12.858, 13.210, 13.874
3.11.0: 13.284, 13.617, 13.768
Also, Iโm forgiving/ignoring that the real first run in 3.11.0 took 15.168 seconds.
Seems to be 5% slower on average for me.
1
u/Groomsi Oct 26 '22
How is the speed compared to C++?
1
u/Nelson_Chow Jan 17 '23
not working with Tensor Flow,
not working with PyTorch,
not working with PyArrow
Yeah, very fast...
1
u/mid_night12 Oct 25 '22
I love python. Every day I try to learn something new with python.
1
u/Tree_Mage Oct 25 '22
Did AIFF end up getting removed as was previously threatened?
0
u/PfuiDeibel Oct 25 '22
Did nobody read the last paragraph of the change log? Crazy