Replies: 1 comment 5 replies
-
Although TOML wasn't designed to be a general-purpose data language, there are lots of tools that allow arbitrary data in their configurations. In the case of In TOML's early days, we rejected nulls in configuration, because we thought that new projects adopting TOML could design their configurations from day one to avoid nulls. But as existing projects transition to TOML, it is getting more difficult to keep this condition, precisely because of the need for naïve data expression. I hate suggesting that we add |
Beta Was this translation helpful? Give feedback.
-
Just bumped into this limitation in real life, specifically with a list containing nulls
pyproject.toml
:"" or {} don't work, they are interpreted as a string/dictionary, not None. This expects exactly 12 values to insert one record into a ?sql? table where all columns except the first one are nullable.
I know the perfect fix would be to improve support of
pyproject.toml
in cx_Freeze. (As opposed to oldersetup.py
, which obviously can create tuples with Nones easily). Ideally they should probably represent records in msi tables as a dictionaries and not tuples in the first place. But I can see why they went with the easiest implementation for the niche use-case of creating MSI installers, especially as setup.py was the only way to configure projects, so toml limitations were not even on the horison.But having absolutely no way to represent None/null is still very annoying.
Beta Was this translation helpful? Give feedback.
All reactions