[issue43039] tempfile.TemporaryDirectory() name string is incorrect

Eric V. Smith report at bugs.python.org
Wed Jan 27 08:46:06 EST 2021


Eric V. Smith <eric at trueblade.com> added the comment:

I agree with Serhiy: changing TemporaryDirectory.__str__() definitely has drawbacks.

I assume gitPython is using str() where they might want to use os.fspath(). Maybe tempfile.TemporaryDirectory (and similar) could then support __fspath__.

----------
nosy: +eric.smith

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue43039>
_______________________________________


More information about the Python-bugs-list mailing list