3 ms·
It makes sense to use toml. It makes zero sense not to bring pytoml in the stdlib before doing so. The way this was handled is a little absurd.
by scrollaway 7y ago
It makes sense to use toml. It makes zero sense not to bring pytoml in the stdlib before doing so. The way this was handled is a little absurd.
- benatkin 7y agoThe PEP has provisional status. Maybe before it lands it will be brought in.
- alien1993 7y ago> The pytoml TOML parser is ~300 lines of pure Python code, so being outside the standard library didn't count heavily against it. From the link. Makes sense I think.
- brettcannon 7y agoIt was on purpose because TOML has not reached 1.0 yet and breaking people using a module in the stdlib for parsing TOML because TOML itself changed would be an absolute mess. Plus not a single packaging project said it was an issue to either depend on or vendor a TOML parser. Once TOML hits 1.0 I plan to work on getting a TOML parser into Python's stdlib. (disclaimer: I am one of the co-authors of PEP 518 that apparently handled things in way that was "a little absurd" .)