[Libre-soc-dev] config file parsing

Luke Kenneth Casson Leighton lkcl at lkcl.net
Wed Sep 9 18:21:29 BST 2020


On Wed, Sep 9, 2020 at 6:08 PM Jacob Lifshay <programmerjake at gmail.com> wrote:

> I'm using the toml package, since toml is like .ini but standardized and
> extended to be able to represent all of json (assuming the top-level thing
> is a table) except for null and with date/time types added.

nice.

> All of the work after calling toml.load[s] is for extracting the proper
> fields from the parsed toml, checking types, and making sure they are
> consistent (like making sure people don't share aliases or have one person
> claim to have another person's name as an alias).

ahh ok

> I also added thorough unit tests, making sure to hit every error condition
> in my code. I also discovered a bug in the toml package:
> https://github.com/uiri/toml/issues/314

hilarious

l.



More information about the Libre-soc-dev mailing list