Iterators: A Simple Tool to Browse Objects in Python

Speaker : Édouard Pineau
Télécom Paris / Safran
Date: 14/10/2020
Time: 11:00 am - 12:00 pm
Location: Paris-Rennes Room (EIT Digital)

Abstract

Iterators are simple tools to browse objects in Python. They define a unique interface called iteration protocol, that enables to decorrelate the objects that contain the data from the object that iterates on data. All standard Python functions to browse objects like ‘for’, ‘while’, etc. are based on iterators. In this presentation, I will formally present iterators, and in particular explain why they are interesting and useful. I will also introduce useful concepts and modules related to iterators: list comprehension, generative expressions and functions, itertools.