[Python-ideas] os.listdir iteration support
gnewsg at gmail.com
Fri Nov 23 15:06:01 CET 2007
imho, not so unusual.
First examples which come to my mind are HTTP and FTP servers which
commonly have to list the content of local directories.
FTP servers, in particular, have to do that VERY often.
On 23 Nov, 02:40, "Guido van Rossum" <gu... at python.org> wrote:
> On Nov 22, 2007 3:25 PM, Terry Reedy <tjre... at udel.edu> wrote:
> > "Giampaolo Rodola'" <gne... at gmail.com> wrote
> > > 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).
> But how common is this use case really?
> --Guido van Rossum (home page:http://www.python.org/~guido/)
> Python-ideas mailing list
> Python-id... at python.orghttp://mail.python.org/mailman/listinfo/python-ideas
More information about the Python-ideas