Skip to content
Sharp

Advanced Python · interview question

A teammate submits shaky functools.wraps code. Which review comment is the strongest?

Multiple choiceEasychapter-14-curatedpremiumadvanced-pythonfunctools-wraps
Choose one answer
Answer and explanation

Correct answer

A. Make the rule clearer and easier to explain. Use wraps so the decorated function still behaves like itself for debugging, docs, and introspection.

Why

The best review comment anchors the change to readability, correctness, and future maintenance. Skipping wraps can make stack traces and framework behavior harder to interpret.

Test yourself on Advanced Python

A free test with instant, explained results. No account needed.

Start free test
All Advanced Python questions →