(stream, Loader=Loader)
Parse a YAML stream and produce parsing events.
Parse a YAML stream and produce parsing events.
Parse a YAML stream and produce parsing events .
def parse(stream, Loader=Loader):
    # type: (StreamTextType, Any) -> Any
    """
    Parse a YAML stream and produce parsing events.
    """
    loader = Loader(stream)
    try:
        while loader._parser.check_event():
            yield loader._parser.get_event()
    finally:
        loader._parser.dispose()
def parse ( stream , Loader = Loader ) : # type: (StreamTextType, Any) -> Any loader = Loader ( stream ) try : while loader . _parser . check_event ( ) : yield loader . _parser . get_event ( ) finally : loader . _parser . dispose ( )