Open Pheotis opened 3 years ago
(Current) uyaml is a quick implementation of a rather adhoc subset of YAML which I quickly made for a specific need. It really needs to be rewritten from scratch (or alternatively, existing unbloated implementation found and ported to Pycopy). I have a long TODO list, and not sure when I get to that.
Would it be possible to add comment parsing to yaml / uyaml?
Doesn't necessarily need the full spec, just some way of delivering information to end-users. Perhaps, any lines starting with
#
could be ignored?Thank you!
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
print(yaml.safe_load(open("commented.yml"))) print(yaml.safe_load(open("uncommented.yml")))