Skip to content

Doing it right with functools.wraps

Coming soon

Preserve function metadata, names, and docstrings using @functools.wraps.

You'll be able to

  • Diagnose lost function metadata in naive decorators
  • Apply @functools.wraps to inner wrapper functions
  • Verify __name__ and __doc__ preservation

Coming soon

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