PyYAML automatically converting certain keys to boolean values
问题 I've been working with a the PyYAML parser for a few months now to convert file types as part of a data pipeline. I've found the parser to be quite idiosyncratic at times and it seems that today I've stumbled on another strange behavior. The file I'm currently converting contains the following section: off: yes: "Flavor text for yes" no: "Flavor text for no" I keep a list of the current nesting in the dictionary so that I can construct a flat document, but save the nesting to convert back to