Closed mpenkov closed 9 years ago
It's definitely a pyaml issue, as PyYAML does the conservative thing and quotes as much as possible, which pyaml tries to "fix", in it's deeply flawed and hacky way ;)
Should be fixed in a77add9, thanks for pointing it out!
Given the data:
pyaml serializes this as:
which then gets deserialized by yaml as:
This is different to the original data. I'm not sure if this is a problem with pyaml, yaml, or something else. The problem is fixed by forcing quotes around "bar:" in the output:
This can be achieved by:
Sample code to reproduce the problem: