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

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)






Add Discussion as Guest

Log in