Relative Content

Tag Archive for pythonyamlpyyaml

How can I tell pyyaml to convert PosixPath to str in yaml.dump

I understand that yaml allows you to represent arbitrary data using tags. I would like to convert a PosixPath to a str instead of representing it as a !!pathlib.PosixPath. How can I tell pyyaml to convert PosixPath to str every time it encounters the type?