This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author steven.daprano
Recipients Gumnos, docs@python, roysmith, steven.daprano
Date 2014-08-08.01:59:25
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1407463165.54.0.126138523997.issue22167@psf.upfronthosting.co.za>
In-reply-to
Content
I agree that the documentation could be improved, but it's not really *wrong*. Consider a glob like "spam/[abc]/*.txt". What iglob does is conceptually closer to:

(1) generate the list of files matching "spam/a/*.txt" and yield them;
(2) generate the list of files matching "spam/b/*.txt" and yield them;
(3) generate the list of files matching "spam/c/*.txt" and yield them

rather than:

(1) generate the list of files matching "spam/a/*.txt";
(2) append the files matching "spam/b/*.txt";
(3) append the files matching "spam/c/*.txt";
(4) finally yield them

(see the source code here: http://hg.python.org/cpython/file/3.4/Lib/glob.py ). I think the documentation is trying to say that iglob doesn't *always* store all the matching files, without implying that it *never* stores all the matching files. I can't think of a clean way to explain that, so a doc patch is welcome.
History
Date User Action Args
2014-08-08 01:59:25steven.dapranosetrecipients: + steven.daprano, roysmith, docs@python, Gumnos
2014-08-08 01:59:25steven.dapranosetmessageid: <1407463165.54.0.126138523997.issue22167@psf.upfronthosting.co.za>
2014-08-08 01:59:25steven.dapranolinkissue22167 messages
2014-08-08 01:59:25steven.dapranocreate