Descriptors are Python objects that can intercept attribute access on another object.
property decorator is powered by the descriptor protocol.
When we use
property like this:
This is a premium topic available only to active Python Morsels subscribers.
You can find free reading material on the topics page.
Need to fill-in gaps in your Python skills? I send weekly emails designed to do just that.