Series 11: Iterators, Generators, and Decorators
This series covers iterators, generators, and decorators in Python.
Articles
- 81. Iterators and Iterables: The iterator protocol
- 82. Generators: Creating iterators with yield
- 83. Generator Expressions: A memory-efficient way to create generators
- 84. Decorators (Part 1): Introduction to decorators
- 85. Decorators (Part 2): Decorators with arguments
- 86. The functools Module: wraps and lru_cache
- 87. Context Managers: The with statement and contextlib
- 88. Closures: Functions with a 'memory'