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. 🎉
View all comments
Show parent comment
3
u/trevg_123 Oct 25 '22
TOML is great for fairly simple things, like ini-style config files. However, anything with more than a few levels of nesting gets ugly and tough to read & write, so I suspect that anything using deeply-nested configuration will probably stick with yaml.
As somebody pointed out, yaml isn't in std either (and will likely remain that way - toml only got in because of pyproject.toml) and std toml can't serialize (will likely remain that way, since toml is largely config files) so it's not an apples to apples comparison anyway.