Skip to content
Sharp

Python Internals · interview question

Which move is the best default when runtime patching becomes part of this workflow?

Multiple choiceHardchapter-19-curatedpremiumpython-internalsruntime-patching
Choose one answer
Answer and explanation

Correct answer

D. Use patching in tests or controlled seams, but do not let it become the architecture of the production system.

Why

Use patching in tests or controlled seams, but do not let it become the architecture of the production system. That is the stronger engineering move because interviewers often probe whether you know where a dynamic feature should stop. Heavy runtime patching can hide dependencies and make behavior difficult to reason about.

Test yourself on Python Internals

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

Start free test
All Python Internals questions →