Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #75859

Re: Test for an empty directory that could be very large if it is not empty?

From Roy Smith <roy@panix.com>
Newsgroups comp.lang.python
Subject Re: Test for an empty directory that could be very large if it is not empty?
Date 2014-08-07 21:10 -0400
Organization PANIX Public Access Internet and UNIX, NYC
Message-ID <roy-5A9393.21105207082014@news.panix.com> (permalink)
References (1 earlier) <c4gjqvF8cmiU1@mid.individual.net> <roy-B1A7CD.07544807082014@news.panix.com> <mailman.12725.1407413212.18130.python-list@python.org> <roy-AF3AC4.08190707082014@news.panix.com> <mailman.12729.1407433146.18130.python-list@python.org>

Show all headers | View raw


In article <mailman.12729.1407433146.18130.python-list@python.org>,
 Tim Chase <python.list@tim.thechases.com> wrote:

> On 2014-08-07 08:19, Roy Smith wrote:
> > > My glob.iglob() uses os.listdir() behind the scenes (see glob1()
> > > in glob.py)
> > > 
> > > -tkc  
> > 
> > In which case, the documentation for iglob() is broken.  It says:
> > 
> > "Return an iterator which yields the same values as glob() without 
> > actually storing them all simultaneously."
> 
> I'd tend to agree that iglob() is broken and should use the
> proposed .scandir() instead for exactly those reasons.
> Unfortunately, it seems that it might not get back-ported
> until .scandir() hits.
> 
> -tkc

I opened a bug against the 2.7 docs:

http://bugs.python.org/issue22167

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Test for an empty directory that could be very large if it is not empty? Virgil Stokes <vs@it.uu.se> - 2014-08-06 23:46 +0200
  Re: Test for an empty directory that could be very large if it is not   empty? Gregory Ewing <greg.ewing@canterbury.ac.nz> - 2014-08-07 18:14 +1200
    Re: Test for an empty directory that could be very large if it is not   empty? Cameron Simpson <cs@zip.com.au> - 2014-08-07 17:08 +1000
    Re: Test for an empty directory that could be very large if it is not   empty? Roy Smith <roy@panix.com> - 2014-08-07 07:54 -0400
      Re: Test for an empty directory that could be very large if it is not empty? Peter Otten <__peter__@web.de> - 2014-08-07 14:06 +0200
      Re: Test for an empty directory that could be very large if it is not empty? Tim Chase <python.list@tim.thechases.com> - 2014-08-07 07:05 -0500
        Re: Test for an empty directory that could be very large if it is not empty? Roy Smith <roy@panix.com> - 2014-08-07 08:19 -0400
          Re: Test for an empty directory that could be very large if it is not empty? Tim Chase <python.list@tim.thechases.com> - 2014-08-07 12:37 -0500
            Re: Test for an empty directory that could be very large if it is not empty? Roy Smith <roy@panix.com> - 2014-08-07 21:10 -0400
  Re: Test for an empty directory that could be very large if it is not empty? John Gordon <gordon@panix.com> - 2014-08-07 20:15 +0000

csiph-web