[issue11406] There is no os.listdir() equivalent returning generator instead of list
Vetoshkin Nikita
report at bugs.python.org
Mon Mar 7 14:57:53 CET 2011
Vetoshkin Nikita <nikita.vetoshkin at gmail.com> added the comment:
Glibc's readdir() and readdir_r() already do caching, so getdents() syscall is called only once on my '/etc' directory. Should we include another caching level in xlistdir() function?
On the other hand, we don't know anything about caches at glibc's level, i.e. we can't tell if our next call to readdir() will result in syscall or even I/O (we could possible release GIL for that).
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11406>
_______________________________________
More information about the Python-bugs-list
mailing list