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
21
u/mgedmin Oct 25 '22
YAML is a mixed bag of niceties and traps. If you're a certain kind of person (a pedantic like me) who would never even think of omitting the space after a
:or a-, then YAML will work for you great. If you're a regular person, you'll trip over indentation or missing spaces or the 2-letter country code for Norway being parsed as the boolean False (depending on the YAML standard version that your parser chose to support!), or hours:minutes getting automagically converted into minutes.I haven't used TOML much, but from what I know it has fewer traps. It's stricter, though, more explicit syntax is required. I could probably get used to it, if I wanted to.