Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

Generating Power Through Python Generator Functions And Iterators

In my post on Python iterators, I mentioned that one limitation of using python iterators in user defined objects is that they do not allow you to have more than one pass at the iterator when you have encountered the StopIteration exception. To conveniently overcome that limitation and give you programming power, the creators of python decided to design an object that is not only an iterable and

@emeka_david



This post first appeared on SOLVING IT?, please read the originial post: here

Share the post

Generating Power Through Python Generator Functions And Iterators

×

Subscribe to Solving It?

Get updates delivered right to your inbox!

Thank you for your subscription

×