News for hackers. Stuff that matters.
Re:Fun with uv and PEP 723 by 0cf8612b2e1e on Tuesday June 24, 2025 @04:30PM (#44370700)
I have never researched this, but I thought the .python-version file only exists to benefit other tools which may not have a full TOML parser.
Re:Fun with uv and PEP 723 by zahlman on Tuesday June 24, 2025 @05:46PM (#44371416)
Read-only TOML support is in the standard library since Python 3.11, though. And it's based on an easily obtained third-party package (https://pypi.org/project/tomli/).

(If you want to write TOML, or do other advanced things such as preserving comments and exact structure from the original file, you'll want tomlkit instead. Note that it's much less performant.)