Class Loader
Synopsis
class Loader(Reader, Scanner, Parser, Composer, Constructor, Resolver)
Description
No description yet.
Mentioned in
- Basic Tutorial / Getting Started
- Documentation / Installation
- Documentation / The yaml package
- Documentation / Loader
- Documentation / YAMLObject
Inheritance
Ancestors: Composer, Scanner, Reader, Constructor, Parser, Resolver
Methods
__init__ |
Source
Lines 41-55 in lib3/yaml/loader.py.
class Loader(Reader, Scanner, Parser, Composer, Constructor, Resolver):
def __init__(self, stream):
Reader.__init__(self, stream)
Scanner.__init__(self)
Parser.__init__(self)
Composer.__init__(self)
Constructor.__init__(self)
Resolver.__init__(self)
# UnsafeLoader is the same as Loader (which is and was always unsafe on
# untrusted input). Use of either Loader or UnsafeLoader should be rare, since
# FullLoad should be able to load almost all YAML safely. Loader is left intact
# to ensure backwards compatibility.
class UnsafeLoader(Reader, Scanner, Parser, Composer, Constructor, Resolver):