On May 29, 6:41 pm, Jabba Laci <jabba.l...@gmail.com> wrote: > > The real answer here is that JSON is probably not the best choice for > > large files that get hand-edited. For data that you intend to hand-edit > > a lot, YAML might be a better choice. > > >> Currently the value of the second key silently overwrites the value of > >> the first. > > Thanks but how would it be different with YAML? Can YAML check duplicate keys? > > How to process (read) YAML files in Python? Can you give me some hints > how to get started? All I need is read it in and create a dictionary > of it. > > Thanks, > > Laszlo
There seems to be a suggested patch for duplicate-detection here http://pyyaml.org/ticket/128 -- http://mail.python.org/mailman/listinfo/python-list