This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ethan.furman
Recipients LimaAlphaHotel, ethan.furman, remi.lapeyre, thatiparthy
Date 2021-09-08.00:54:18
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1631062458.24.0.0663328876959.issue41026@roundup.psfhosted.org>
In-reply-to
Content
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()`.
History
Date User Action Args
2021-09-08 00:54:18ethan.furmansetrecipients: + ethan.furman, thatiparthy, remi.lapeyre, LimaAlphaHotel
2021-09-08 00:54:18ethan.furmansetmessageid: <1631062458.24.0.0663328876959.issue41026@roundup.psfhosted.org>
2021-09-08 00:54:18ethan.furmanlinkissue41026 messages
2021-09-08 00:54:18ethan.furmancreate