On 2023-12-06 at 09:32:02 +0000,
Chris Green via Python-list <python-list@python.org> wrote:

> Thomas Passin <li...@tompassin.net> wrote:

[...]

> > Just go with an .ini file. Simple, well-supported by the standard 
> > library. And it gives you key/value pairs.
> > 
> My requirement is *slightly* more complex than just key value pairs,
> it has one level of hierarchy, e.g.:-
> 
>     KEY1:
>       a: v1
>       c: v3
>       d: v4
>     KEY2:
>       a: v7
>       b: v5
>       d: v6
> 
> Different numbers of value pairs under each KEY.

INI files have sections.

See <https://en.wikipedia.org/wiki/INI_file#Sections>.
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to