All challenges
Multiple ChoiceHard 30s

__slots__ with Descriptors

Choose the best answer for: descriptors and slots
Options
  1. 1Descriptors require an instance __dict__ to store values
  2. 2__slots__ prevents descriptors from being defined at all
  3. 3Slots and descriptors are mutually incompatible in a class
  4. 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.

Play this in a 3-minute battle