Ethan Furman <et...@stoneleaf.us> added the comment:
The problem with using `str()` on a path argument is that the argument may not be a str, nor a pathlib object, but `str()` will still create a string out of it, leading to difficult bugs. The documentation for pathlib also predates the addition of `os.fspath()`. ---------- nosy: +ethan.furman _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue41026> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com