Advanced Python in Python

Lessons in this section

  1. Advanced Functions

    Lambdas, closures and nonlocal, iterators and StopIteration, generators and yield, and decorators with functools.wraps.

  2. Class Relationships

    Has-a instead of is-a: aggregation where the part is passed in, composition where the whole builds it, and how to tell them apart.

  3. Multithreading

    Threads, processes, the main thread and child threads, the threading module, locks and events, and why the browser cannot start one.