[issue11406] There is no os.listdir() equivalent returning generator instead of list

Gregory P. Smith report at bugs.python.org
Wed Mar 6 21:07:47 CET 2013


Gregory P. Smith added the comment:

I'd like to take care of this at Python.  At least for posix (someone else can deal with the windows side if they want).

I just stumbled upon an extension module at work that someone wrote specifically because os.listdir consumed way too much ram by building up a huge list on large directories with tons of long filenames that it needed to process.  (when your process is in charge of keeping that directory in check... the inability to process it once it grows too large simply isn't acceptable)

----------
assignee:  -> gregory.p.smith
nosy: +gregory.p.smith
versions: +Python 3.4 -Python 3.3

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11406>
_______________________________________


More information about the Python-bugs-list mailing list