Multiple ChoiceHard 30s
__slots__ with Descriptors
Choose the best answer for: descriptors and slots
Options
- 1Descriptors require an instance __dict__ to store values
- 2__slots__ prevents descriptors from being defined at all
- 3Slots and descriptors are mutually incompatible in a class
- 4Descriptors can be used with __slots__ for controlled attribute access
Think you can answer under pressure?
Get matched and answer live questions in 3-minute 1v1 battles. Elo ranking, badge tiers and bragging rights on the line.