Setting up a database in a Flask application.

safe_load(), safe_dump() or use load() with Loader=SafeLoader (eg. yaml.load(serialized_data,Loader=yaml.SafeLoader)) to deserialize and serialize data respectively as these methods are made not to work on custom objects of classes. Lets try to execute the last code in PyYAML version < 5.1 and the output will be: ................
................