[issue11406] There is no os.listdir() equivalent returning generator instead of list
Martin v. Löwis
report at bugs.python.org
Sat Mar 5 11:45:23 CET 2011
Martin v. Löwis <martin at v.loewis.de> added the comment:
> Big dirs are really slow to read at once.
Do you a proof for that claim? How big, and how really slow?
> for i in os.listdir()
> use(i)
Also, how long does use(i) take, and what reduction (in percent)
can you gain from listdir iterating?
In short, I'm skeptical that there is an actual problem to be solved here.
----------
nosy: +loewis
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11406>
_______________________________________
More information about the Python-bugs-list
mailing list