3. Data model — Python 3 documentation#object.iter

object.__iter__(self)

This method is called when an iterator is required for a container. This method should return a new iterator object that can iterate over all the objects in the container. For mappings, it should iterate over the keys of the container.

Printed 2026-06-28.

(echo:: @ )