On Thu, May 1, 2008 at 3:20 AM, Nick Coghlan <[EMAIL PROTECTED]> wrote: > I think Giovanni's point is an important one as well - with an iterator, > you can pipeline your operations far more efficiently, since you don't have > to wait for the whole directory listing before doing anything (e.g. if > you're doing some kind of move/rename operation on a directory, you can > start copying the first file to its new location without having to wait for > the directory read to finish). > > Reducing the startup delays of an operation can be a very useful thing when > it comes to providing a user with a good feeling of responsiveness from an > application (and if it allows the application to more effectively pipeline > something, there may be an actual genuine improvement in responsiveness, > rather than just the appearance of one).
This sounds like optimizing for a super-rare case. And please do tell me if you've timed this. -- --Guido van Rossum (home page: http://www.python.org/~guido/) _______________________________________________ Python-3000 mailing list Python-3000@python.org http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com