Warning!
The version you're viewing is not the latest.
Go to the latest version
Function compose_all
Synopsis
def compose_all(stream, Loader=Loader)
Description
Parse all YAML documents in a stream and produce corresponding representation trees.
Mentioned in
- Documentation / The yaml package
Source
Lines 91-102 in lib3/yaml/__init__.py.
def compose_all(stream, Loader=Loader):
"""
Parse all YAML documents in a stream
and produce corresponding representation trees.
"""
loader = Loader(stream)
try:
while loader.check_node():
yield loader.get_node()
finally:
loader.dispose()