[Distutils] comparison of configuration languages
Donald Stufft
donald at stufft.io
Tue May 10 10:24:10 EDT 2016
> On May 10, 2016, at 10:16 AM, Antoine Pitrou <solipsis at pitrou.net> wrote:
>
> On Tue, 10 May 2016 10:38:51 +0300
> Alex Grönholm <alex.gronholm at nextday.fi> wrote:
>> TOML isn't much better than ConfigParser in terms of representing nested
>> structures.
>
> Indeed, that seems to be a strong point against TOML. If we don't care
> about nested structures that much, then ConfigParser should be more or
> less ok…
>
TOML is infinitely better at nested structured that ConfigParser, given that
TOML actually *supports* nested structures beyond a level of 1. The only way
to get anything like:
[package.build]
dependencies = ["setuptools", "wheel"]
In ConfigParser is to add post-processing to the values, which then you're no
longer a "ConfigParser" file, you're a "ConfigParser + Whatever random one off
code you wrote to do post processing" file.
-----------------
Donald Stufft
PGP: 0x6E3CBCE93372DCFA // 7C6B 7C5D 5E2B 6356 A926 F04F 6E3C BCE9 3372 DCFA
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 842 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://mail.python.org/pipermail/distutils-sig/attachments/20160510/cfefefdd/attachment.sig>
More information about the Distutils-SIG
mailing list