Python protocols: iteration protocol
The iteration protocol applies directly to a sequence or mapping type.
Sources
Lutz, Mark. Learning Python. Third ed., O’Reilly, 2008. Chapter 4, “Introducing Python Object Types.”
The iteration protocol applies directly to a sequence or mapping type.
Lutz, Mark. Learning Python. Third ed., O’Reilly, 2008. Chapter 4, “Introducing Python Object Types.”