For efficiency and for convenience, we should support writing data directly into any file-like object, just like PyYAML does.
For efficiency and for convenience, we should support writing data directly into any file-like object, just like PyYAML does.