What Are Descriptors Good For?

Abstract

One of the most useful aspects of descriptors is their ability to encapsulate data so well. With descriptors, you have a simple way of accessing an attribute via attribute access notation (a.x) while allowing more complex actions to happen in the background.