Ethan Furman <[email protected]> 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 <[email protected]> <https://bugs.python.org/issue41026> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
