Skip to content
Sharp

Advanced Python · interview question

Which option describes the most likely pitfall around decorator factories?

Multiple choiceMediumchapter-14-curatedpremiumadvanced-pythondecorator-factories
Choose one answer
Answer and explanation

Correct answer

B. Stacking configurable decorators thoughtlessly can hide the true runtime behavior behind layers of indirection.

Why

Stacking configurable decorators thoughtlessly can hide the true runtime behavior behind layers of indirection. Calling out that risk matters because interviewers like hearing that decorator factories are just explicit higher-order functions with real tradeoffs.

Test yourself on Advanced Python

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

Start free test
All Advanced Python questions →