August 2018
Intermediate to advanced
332 pages
9h 12m
English
Up until now, we have seen quite a few examples of descriptors in action, and we got the idea of how they work. These examples gave us a first glimpse of the power of descriptors, but you might be wondering about some implementation details and idioms whose explanation we failed to address.
Since descriptors are just objects, these methods take self as the first parameter. For all of them, this just means the descriptor object itself.
In this section, we will explore each method of the descriptor protocol, in full detail, explaining what each parameter signifies, and how they are intended to be used.
Read now
Unlock full access