Iterators are defined in the Python documentation as objects implementing both __iter__() and…
Alberto García-Raboso

Yes, you’re right that’s how it’s defined. I even mention that. But adding that to the class would go against the whole purpose of the article, ie showing that they don’t need that.

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.