A one hour Python knowledge sharing session. Delivered to Gigaclear devs on January 4th 2024.
Topics are: iterators, generators, references and assignment.
Iterators and generators. Stateful iteration, the other half of coroutines. Including a look at the iteration protocol and adding custom iteration to objects.
References, assignment and mutability: how references work in Python. Identity versus equality. Functions "call by object". Mutability and multiple references. Object copying.
Slides and example code here: https://github.com/voidspace/talks