[Python-ideas] os.listdir iteration support
Guido van Rossum
guido at python.org
Fri Nov 23 21:23:37 CET 2007
But how many FTP servers are written in Python *and* have directories
with 20,000 files in them?
On Nov 23, 2007 6:06 AM, Giampaolo Rodola' <gnewsg at gmail.com> wrote:
> 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
> Python-ideas mailing list
> Python-ideas at python.org
--Guido van Rossum (home page: http://www.python.org/~guido/)
More information about the Python-ideas