bytes vs. characters
bytes vs. characters
Posted Apr 24, 2015 11:44 UTC (Fri) by cesarb (subscriber, #6266)In reply to: bytes vs. characters by lopgok
Parent article: Report from the Python Language Summit
Does it still skip files if you use the "bytes" interface (os.listdir(b'.'))?
I just took a quick look at the current Python source code for os.listdir (https://hg.python.org/cpython/file/151cab576cab/Modules/p...), and it only has code to skip the "." and ".." entries, as it's documented to do. In both the "str" and the "bytes" case, it adds every entry other than these two. For it to skip anything else on os.listdir, readdir() from glibc has to be skipping it, and it should affect more than just Python.
Or is the problem with something other than os.listdir?
