Search notes:

Python: __iter__

Any object that has an __iter__() method is an iterable.
If it also has a __next__ method, it is an iterator.

See also

Generators
Other dunders

Index