Skip to content

Decorators from scratch

Coming soon

Learn that decorators are functions wrapping functions, and @ is just syntactic sugar.

You'll be able to

  • Write a wrapper function from scratch
  • Explain how @decorator translates to func = decorator(func)
  • Preserve variable arguments using *args and **kwargs

Coming soon

This lesson is being written. It will be free here, like every lesson. The Telegram channel announces new lessons as they open.