Skip to content

functools and itertools — Video Resources

← Back to Concept

Best Single Video

Python Tutorial: Decorators - Dynamically Alter The Functionality Of Your Functions by Corey Schafer (30 min) Why: functools.wraps is the most important functools tool for intermediate developers, and this video teaches it in context. Starts from closures, builds to decorators, and shows functools.wraps in action. Understanding this pattern unlocks the rest of functools.

Alternatives

  • The Single Most Useful Decorator in Python by mCoding (8 min) — A focused deep dive on functools.wraps specifically: why every decorator should use it, what breaks without it, and the subtle metadata issues it solves. Short and immediately actionable.
  • Iterators, Iterables, and Itertools by Socratica (~12 min) — Covers the itertools module alongside the iterator protocol. Shows chain, islice, count, cycle, and other itertools functions with clean examples. A solid itertools primer.

Deep Dives

  • Python Tutorial: Generators - How to Use Them and the Benefits You Receive by Corey Schafer (~11 min) — Generators are the foundation that itertools builds on. Understanding yield and lazy evaluation is prerequisite knowledge for using itertools effectively. This video provides that foundation.
  • Python Decorators: The Complete Guide by ArjanCodes (22 min) — Covers both functional and class-based decorators with a software design lens. The sections on functools.wraps and decorators with arguments show functools patterns in a broader architectural context.

Last verified: February 2026