Intermediate Course
Lesson 4 of 100
@functools.wraps — Preserving Function Identity
Fix the hidden problem with basic decorators — they disguise the function they wrap. functools.wraps restores the function's true identity.
Briefing
Concepts
Mission 1
Mission 2
Complete