Tag: stopiteration
Python 2.7: How to correctly implement a custom iterator that handles StopIteration gracefully?