Accept pathlib.Path
in loaders and dumpers
#2458
Labels
community-generated
developer-days
smallish tickets that can be considered "maintenance" and fixed within a single session
generator-misc
Pertaining to more than one generator, or perhaps one that doesn't exist yet
What is your feature request?
The loaders and dumpers don't seem to understand pathlike types other than strings.
You get:
Full traceback:
How important is this feature to you? Select from the options below:
Low
Additional context
I believe the best practice way to do this is not to add a special case for
Path
, but rather to acceptstr
,bytes
oros.PathLike
as described here: https://docs.python.org/3/glossary.html#term-path-like-object.The text was updated successfully, but these errors were encountered: