Serhiy Storchaka <storchaka+cpyt...@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 <rep...@bugs.python.org>
<https://bugs.python.org/issue40701>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to