Skip to main content
Journey Uncommon Logo
JourneyUncommon
hardPythoninterningSingle-choice MCQ

The compiler auto-interns some string literals but not others. Which rule best describes which literals CPython's peephole/compiler stage interns automatically?

def f(): a = "foo_bar" # ? b = "foo bar" # ?