Serhiy Storchaka <storchaka+cpyt...@gmail.com> added the comment:

Well, the behavior for an existing bytes path was not unintended, but some 
people can depend on it.

But before making it an official feature, we should also check other cases of 
an unintended behavior. What if set tempfile.tempdir to a Path object or to a 
file descriptor of a directory? Does anything work in these cases and should we 
support them?

----------

_______________________________________
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