Skip to content
Sharp

Python Internals · interview question

Which option describes the most likely pitfall around import system and caching?

Multiple choiceHardchapter-19-curatedpremiumpython-internalsimport-system-and-caching
Choose one answer
Answer and explanation

Correct answer

C. Treating imports as free and contextless makes certain runtime bugs harder to untangle.

Why

Treating imports as free and contextless makes certain runtime bugs harder to untangle. Calling out that risk matters because candidates who can explain sys.modules and import caching usually sound well-grounded.

Test yourself on Python Internals

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

Start free test
All Python Internals questions →