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
/
functools
Which guarantee does functools.wraps() provide?
from functools
Python 3.14
beginner
1 min
Which guarantee does functools.wraps() provide?
It copies selected metadata and sets __wrapped__ to the wrapped callable.
It verifies that every argument and return value is forwarded.
It turns a synchronous wrapper into an asynchronous function when needed.
It prevents callers from accessing the original function.
Check
Ask AI about this kata
Report an error
previous kata
Spot the bug in the comparator
Spot the bug
A new version is available
Reload