diff --git a/README b/README index 361839a0..49c87e76 100644 --- a/README +++ b/README @@ -15,6 +15,10 @@ parser and emitter as follows: >>> yaml.load(stream, Loader=yaml.CLoader) >>> yaml.dump(data, Dumper=yaml.CDumper) +If you don't trust the input stream, you should use: + + >>> yaml.safe_load(stream) + PyYAML includes a comprehensive test suite. To run the tests, type 'python setup.py test'.