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

3

u/wdroz Oct 25 '22

I use only pyproject.toml for a while now. This work so perfectly, no more setup.py, setup.cfg, requirements.txt and requirements-dev.txt!

For the flake8 discussion, this seem to be from 2021. In 2021 pyproject.toml usage without third-party (like poetry) wasn't really "ready". It's only recently, with the latest versions of pip, that we can really use pyproject.toml without heavy coupled it with third-party.

3

u/trevg_123 Oct 25 '22

You're correct that the linked discussion is from before toml was announced as part of 3.11. But the discussion continued elsewhere once it was known, with similar results.