Brett Cannon added the comment:

The key thing with the docs is that it doesn't say anywhere "takes a string 
path" or a "path as a string" or something else that suggests path-like objects 
don't work. If you want to clearly state that path-like objects are acceptable 
that is fine as well.

As for the bytes/str parts, path-like objects that return bytes should work, 
but only if everything is str or bytes as passed into the function (e.g. mixing 
the types should not be expected to work).

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue29447>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to