Functions
Advanced functional patterns, closures, higher-order functions, and decorators in Python.
Contents
First-Class Functions
Understanding first-class citizens, variable assignment, passing arguments, and returning functions in Python.
Closures
Understanding lexical scope capture, free variables, nonlocal mutation, late binding, and closure introspection in Python.
Decorators
Understanding decorator syntax, wrapping functions, preserving metadata, parameterized decorators, and stacking in Python.
functools
Key utilities from Python's functools module — wraps, lru_cache, cache, partial, reduce, singledispatch, and total_ordering.