All challenges
Multiple ChoiceHard 30s

Descriptors

The __get__/__set__ protocol implements:
Options
  1. 1Descriptors — the basis of property, classmethod, and staticmethod
  2. 2Context managers that wrap blocks in the with protocol
  3. 3Decorators that wrap functions to modify their behavior
  4. 4Iterators that yield the next value lazily via __next__

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