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

Under __slots__, what is the object stored as the class attribute for each slot name, and how does it provide per-instance storage without a __dict__?

class S: __slots__ = ('x',) print(type(S.__dict__['x']).__name__)