Replies: 1 comment
-
sounds good, but I'd rather only support one format (actually in my new projects i use hydra). |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Starting from Python 3.11, tomlib and toml are shipped in standard library, meaning no need to install additional packages to read .toml file.
I found this info when reading a manual
configparser
(in See also:). Based on its explanation, in https://toml.io/en/, TOML format has many advantages over INI format, e.g., standardization, can read different values automatically: integer, boolean, strings (while INI only can read string only, afaik). I think this can reduce the burden of future contributor due to the large use ofast.literal_eval()
to parse value in INI format.PROS:
CONS:
As a backup, we can support both formats (TOML and INI) in v1.0, while give depreciation warning in the next major version (v2.0?)
Beta Was this translation helpful? Give feedback.
All reactions