Function safe_load_all

Synopsis

def safe_load_all(stream)

Description

Parse all YAML documents in a stream and produce corresponding Python objects.

Resolve only basic YAML tags. This is known to be safe for untrusted input.

Mentioned in

Source

Lines 164-173 in lib3/yaml/__init__.py.

def safe_load_all(stream):
    """
    Parse all YAML documents in a stream
    and produce corresponding Python objects.

    Resolve only basic YAML tags. This is known
    to be safe for untrusted input.
    """
    return load_all(stream, SafeLoader)






Add Discussion as Guest

Log in