Support for pathlib

It seems to be the case that these libraries just tolerate pathlib then, as all they do is covert to string as soon as they can. I’m not sure it makes sense to modify current implementations to be based on pathlib. But if I had to, for example, write a library to read DICOM, I think it would be very handy. But that’s a different issue.

Here are the aforementioned libraries tolerating a path-like object:

I agree, I think modifying SetFileName would be the change we are after.

1 Like