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


-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to