[Python-3000] Removal of os.path.walk (original) (raw)
Aahz aahz at pythoncraft.com
Thu May 1 18:11:07 CEST 2008
- Previous message: [Python-3000] Removal of os.path.walk
- Next message: [Python-3000] [stdlib-sig] PEP 3108 - stdlib reorg/cleanup
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Thu, May 01, 2008, Guido van Rossum wrote:
On Thu, May 1, 2008 at 7:25 AM, Aahz <aahz at pythoncraft.com> 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 (aahz at pythoncraft.com) <*> http://www.pythoncraft.com/
Help a hearing-impaired person: http://rule6.info/hearing.html
- Previous message: [Python-3000] Removal of os.path.walk
- Next message: [Python-3000] [stdlib-sig] PEP 3108 - stdlib reorg/cleanup
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]