Louie Lu added the comment:
@Brett, do you think if given a path-like dir, it should only be treated as
`str`, or it could be `str` and `bytes`?
My PR is now treated path-like dir as `str`, not `bytes`.
This will affect at this places:
tempfile.mkdtemp(dir=pathlike.Path(''), pre=b'', suf=b'')
Should it raise a TypeError (since we can't mix str and bytes), or it will
convert path-like to bytes.
----------
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue29447>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com