Function safe_dump_all
Synopsis
def safe_dump_all(documents, stream=None, **kwds)
Description
Serialize a sequence of Python objects into a YAML stream. Produce only basic YAML tags. If stream is None, return the produced string instead.
Mentioned in
- Documentation / The yaml package
- Documentation / Dumper
Source
Lines 292-299 in lib3/yaml/__init__.py.
def safe_dump_all(documents, stream=None, **kwds):
"""
Serialize a sequence of Python objects into a YAML stream.
Produce only basic YAML tags.
If stream is None, return the produced string instead.
"""
return dump_all(documents, stream, Dumper=SafeDumper, **kwds)