Function parse

Synopsis

def parse(stream, Loader=Loader)

Description

Parse a YAML stream and produce parsing events.

Mentioned in

Source

Lines 69-79 in lib3/yaml/__init__.py.

def parse(stream, Loader=Loader):
    """
    Parse a YAML stream and produce parsing events.
    """
    loader = Loader(stream)
    try:
        while loader.check_event():
            yield loader.get_event()
    finally:
        loader.dispose()






Add Discussion as Guest

Log in