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

Vetoshkin Nikita report at bugs.python.org
Thu Mar 10 22:55:02 CET 2011


Vetoshkin Nikita <nikita.vetoshkin at gmail.com> added the comment:

>BTW, can you publish your xlistdir implementation somewhere?
http://pastebin.com/Qnni5HBa

Tests show 10 times smaller memory footprint during directory listing - 25Mb against 286Mb on directory with 800K entries.

----------

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


More information about the Python-bugs-list mailing list