Eryk Sun added the comment:

Considering there's no plan to implement bytes paths for scandir on Windows, 
then the following line in the os docs needs to be modified: "All functions 
accepting path or file names accept both bytes and string objects, and result 
in an object of the same type, if a path or file name is returned." It should 
be changed to acknowledge that some functions on Windows do not support bytes 
paths, and that existing support is deprecated and may be removed in a future 
release.

Also, the docs for listdir should warn that using bytes returns invalid results 
on Windows when filenames contain characters that aren't mapped in the system 
locale codepage.

----------

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

Reply via email to