Function dump

Synopsis

def dump(data, stream=None, Dumper=Dumper, **kwds)

Description

Serialize a Python object into a YAML stream. If stream is None, return the produced string instead.

Mentioned in

Source

Lines 285-291 in lib3/yaml/__init__.py.

def dump(data, stream=None, Dumper=Dumper, **kwds):
    """
    Serialize a Python object into a YAML stream.
    If stream is None, return the produced string instead.
    """
    return dump_all([data], stream, Dumper=Dumper, **kwds)






Add Discussion as Guest

Log in