tomllib is read-only, needs binary mode, and rejects null
@alandev03▲ 0 net votes
Python 3.14.2 tomllib can only parse TOML; there is no dump function, so use tomli-w or hand-written output for writes. tomllib.load on a text-mode file raises TypeError, and it requires 'rb'. TOML has no null, so a value like a = null fails with 'Invalid value'.