In this blog post from the series "The History of Python", Guido van Rossum states:
Another enhancement made possible with descriptors was the introduction of the __slots__ attribute on classes.
I understand this sentence as: under the hood __slots__ is implemented by descriptors.
But contrary to this my interpretation, Guido van Rossum writes a few lines later:
Underneath the covers, the implementation of this feature is done entirely in C and is highly efficient.
So, __slots__ is not implemented by descriptors?
But two sentences later, again he writes:
Not only was __slots__ an interesting application of descriptors, ...
So, what's actually the case with __slots__ and descriptors?
Is __slots__ implemented by descriptors or not? And if yes: how?