Function to_yaml

Synopsis

def to_yaml(cls, dumper, data)

Description

Convert a Python object to a representation node.

Mentioned in

Source

Lines 421-428 in lib3/yaml/__init__.py.

def to_yaml(cls, dumper, data):
    """
    Convert a Python object to a representation node.
    """
    return dumper.represent_yaml_object(cls.yaml_tag, data, cls,
            flow_style=cls.yaml_flow_style)





Add Discussion as Guest

Log in