Re: [Python-3000] Removal of os.path.walk On Thu, May 01, 2008, Guido van Rossum wrote: > On Thu, May 1, 2008 at 7:25 AM, Aahz  wrote: >> >>  Actually, the primary application I'm thinking of is a CGI that displays >>  part of a directory listing (paged) for manual processing of individual >>  files. >  > But wouldn't you usually want the listing sorted, while os.listdir() > doesn't guarantee sorting? So you'd still have to read the entire > thing, sort it, and then display the selected page. With hundreds of thousands of files, the sorting is done after filtering, so reducing the memory consumed during the filter stage is still extremely useful. --  Aahz (tlxa@pythoncraft.com)           <*>         http://www.pythoncraft.com/ Help a hearing-impaired person: http://rule6.info/hearing.html _______________________________________________ Python-3000 mailing list smsbmo-9552@python.org http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/python-3000%40tangomu.com