Python language

Descriptor

An object defining __get__, __set__ or __delete__, controlling attribute access on the owning class.

Why interviewers ask about it

The machinery behind property, classmethod, staticmethod and ORM fields. Knowing that property is a descriptor is what turns it from magic into mechanism.

This term is part of the free Python Full-Stack interview preparation module - browse the full glossary for every definition.