I needed to use the glob module to list files with a certain regex and it worked perfectly with glob()
.
When i went through the documentation of the module, I saw another function globi()
. It was mentioned that iglob()
returns an iterator. Can someone please explain what that means?
Asked
Active
Viewed 919 times
0
-
possible duplicate: http://stackoverflow.com/questions/9884132/what-exactly-are-pythons-iterator-iterable-and-iteration-protocols – StefanS Jun 23 '16 at 13:04
-
1Since you were reading the [`iglob()` documentation](https://docs.python.org/2/library/glob.html#glob.iglob), there's a link to [iterator](https://docs.python.org/2/glossary.html#term-iterator) right there. – martineau Jun 23 '16 at 13:04
-
Thanks for your help peeps!! – Aditya Jun 24 '16 at 20:23