Warning!
The version you're viewing is not the latest.
Go to the latest version
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
- Documentation / The yaml package
- Documentation / Loader
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)