[issue41026] mailbox does not support new Path object

Ethan Furman report at bugs.python.org
Tue Sep 7 20:54:18 EDT 2021


Ethan Furman <ethan at 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 <report at bugs.python.org>
<https://bugs.python.org/issue41026>
_______________________________________


More information about the Python-bugs-list mailing list