[Python-ideas] os.listdir iteration support
Terry Reedy
tjreedy at udel.edu
Fri Nov 23 00:25:06 CET 2007
"Giampaolo Rodola'" <gnewsg at gmail.com> wrote
in message
news:d827975f-7c1e-471e-bac1-8d55262ab122 at d27g2000prf.googlegroups.com...
| I would find very useful having a version of os.listdir returning a
generator.
If there are no technical issues in the way, such a replacement (rather
than addition) would be in line with other list -> iterator replacements in
3.0 (range, dict,items, etc). A list could then be obtained with
list(os.listdir).
tjr
More information about the Python-ideas
mailing list