[issue40701] tempfile mixes str and bytes in an inconsistent manner
Serhiy Storchaka
report at bugs.python.org
Mon May 25 03:35:41 EDT 2020
Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:
In any case this is a new feature, so it can be added only in 3.10, and we need the documentation patch for 3.9 and older.
As a workaround you can use os.fsdecode():
tempfile.tempdir = os.fsdecode(b'/doesntexist')
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue40701>
_______________________________________
More information about the Python-bugs-list
mailing list