| | 956 | {{{ |
| | 957 | #!python |
| | 958 | BaseLoader(stream) |
| | 959 | SafeLoader(stream) |
| | 960 | Loader(stream) |
| | 961 | }}} |
| | 962 | |
| | 963 | '''`BaseLoader`''', '''`SafeLoader`''', and '''`Loader`''' provide the PyYAML ''Loader'' interfaces. |
| | 964 | '''`Loader`''' is the most common of them and should be used in most cases. '''`BaseLoader`''' does not |
| | 965 | resolve or support any tags and construct only basic Python objects: lists, dictionaries and Unicode strings. |
| | 966 | '''`SafeLoader`''' supports only standard YAML tags and thus it does not construct class instances and |
| | 967 | probably safe to use with documents received from an untrusted source. |
| | 968 | |
| | 969 | '''`stream`''' is an input YAML stream. It can be a string, a Unicode string, an open file, an open Unicode file. |
| | 970 | |