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. The Telegram channel announces new lessons as they open.