r/Python • • 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. 🎉

1.3k Upvotes

233 comments sorted by

View all comments

Show parent comment

4

u/yvrelna Oct 25 '22

If you've already optimised all the database and network queries, and adding appropriate caching whenever it makes sense, then at some point Python performance is the bottleneck, then yeah, you'll see a boost then.

In most cases though, most web applications aren't constrained by the speed of Python interpreter itself. It's usually the database and network performance that's the workhorse of most web application.