Python Professional — Hard
Key points
- Decorators like @wraps can maintain original function metadata
- The wrapper function acts as a middleman between the decorator and the original function
- The __name__ attribute holds the function name
- The __doc__ attribute holds the function docstring
Ready to go further?
Related questions
