Menu

#415 Ordering not respected when dumping just loaded file

invalid
nobody
None
major
bug
2022-01-07
2022-01-07
No

First level order is not kept on dump.
See attached example and code to load and dump.
Thanks in advance

2 Attachments

Discussion

  • Anthon van der Neut

    • status: open --> invalid
     
  • Anthon van der Neut

    AFAIC the documentation states that you need the (default) round trip loader/dumper to preserve the order of keys. So you shouldn't provide typ='safe'. With the safe loader it makes no sense to specify preserve_quotes=True as it won't, that also only works with the round-trip loader.

     

Log in to post a comment.

Monday.com Logo