Crates generators. I've only ever used this in two scenarios: machine learning where you step through data (I think its a memory preservation thing) and in a Web scraper. Scrapy uses generators to crawl a page and whether to stop or continue based on whether there is a next page or not.