On Tue, Apr 29, 2008 at 8:10 PM, Tim Heaney <[EMAIL PROTECTED]> wrote:
> Speaking of this, is it too late to lobby for an iterator version of
>  os.listdir? (Perhaps listdir would not be the best name. :)
>
>  There is one at
>
>   http://wxidle.sourceforge.net/projects/xlistdir/
>
>  but I think it ought to be in the standard library. Moreover, if we
>  had such a thing, shouldn't os.walk use it instead of lists?

I'm not sure I see the advantage of having it as an iterator; I doubt
that there is ever not enough memory to hold the contents of a single
directory. Do you have a compelling use case?

-- 
--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

Reply via email to