Closed ssato closed 7 years ago
Possibly use rtyaml instead of pyyaml to preserve order and comments. rtyaml builds on top of pyyaml.
Thanks a lot for your info! I was not aware of rtyaml. It feels promising in various point of views and I will look into it.
The commit 76508b7 and related ones improved and fixed this and now we can load YAML files with the order of items kept.
update, I would reconsider now with ruamel.yaml. Supports the latest YAML 1.2 standard unlike PyYAML.
@AnkurDedania Thanks a lot! I'll look into it also.
@AnkurDedania Just FYI. I changed the yaml backend to use ruamel.yaml instead of PyYAML if it's available: 551c0fd
It's possible but not easy to keep items load from YAML files. see: