Python 3.11 Preview: TOML and tomllib
Python 3.11 is getting closer to its final release, which will happen in October 2022. The new version is currently going through beta testing, and you can install it yourself to preview and test some of the new features, including support for reading TOML with the new tomllib
module.
TOML is a configuration file format that’s getting more and more popular in the Python ecosystem. This is driven by the adoption of pyproject.toml
as the central configuration file in Python packaging. Other important tools, like Black, mypy, and pytest, also use TOML for their configuration.
There are many other new features and improvements coming in Python 3.11. Check out what’s new in the changelog for an up-to-date list, and