Skip to content
0/11

Python Advanced: Decorators, Generators and Typing

Closures and Decorators

In this lesson you will

  • Pass functions around and return them from other functions
  • Explain what a closure is and use nonlocal
  • Write decorators, including ones with arguments, using functools.wraps