Skip to content
CodeWiki
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
Search
⌘K
English
English
Chinese
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
English
English
Chinese
Practice
/
Quiz
/
Python
/
Decorators
What does functools.wraps() guarantee for a wrapper?
from Decorators
Python 3.14
beginner
1 min
What does functools.wraps() guarantee for a wrapper?
It copies selected metadata and adds a __wrapped__ link.
It proves that every argument and result is forwarded correctly.
It makes a synchronous wrapper become asynchronous when needed.
It makes the wrapper and wrapped function the same object.
Check
Ask AI about this kata
Report an error
previous kata
Spot the bug in the decorator wrapper
Spot the bug
A new version is available
Reload