0

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?

martineau
  • 119,623
  • 25
  • 170
  • 301
Aditya
  • 11
  • 1
  • possible duplicate: http://stackoverflow.com/questions/9884132/what-exactly-are-pythons-iterator-iterable-and-iteration-protocols – StefanS Jun 23 '16 at 13:04
  • 1
    Since 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

0 Answers0