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

Terry J. Reedy report at bugs.python.org
Wed Mar 9 01:31:44 CET 2011


Terry J. Reedy <tjreedy at udel.edu> added the comment:

There has been discussion of this before, but it must have been on one of the lists, (possibly py3k list) as searching tracker for 'listdir generator' only returns this.

I believe I pointed out then that Miscrosoft C (also) has (did once) a 'nextdir' function. It's been so long that I forget details.

I thought then and still do that listdir should (have) change (d) like range, map, and filter did, for same reasons.

----------
nosy: +terry.reedy

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


More information about the Python-bugs-list mailing list