Skip to main content
Journey Uncommon Logo
JourneyUncommon
hardPython__slots__ layoutSingle-choice MCQ

What kind of object does CPython install on the class for each name in __slots__, and how does it store/retrieve the value?

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