3 ms·
It's possible to have document start and end markers in yaml: --- foo: 1 ... Your application can mandate usage of these. But yeah, not ideal.
by gray_-_wolf 5y ago
It's possible to have document start and end markers in yaml:
---
foo: 1
...
Your application can mandate usage of these. But yeah, not ideal.
- mdaniel 5y ago> Your application can mandate usage of these I believe that's only true if one were to load YAML via the "SAX"-style per-event stream, and not the "object materialization" that normal apps use (aka `yaml.load_all` or JAX-B objects) since in those more data-object centric views, where would one put the processing events for those markers? I also originally expected `yaml.parse(...)` to eat them as it does for comments and extraneous whitespace, but no, it does in fact return dedicated stream events for them, so TIL