[issue39443] Inhomogeneous behaviour for descriptors in between the class-instance and metaclass-class pairs

Hugo Ricateau report at bugs.python.org
Sat Jan 25 09:05:57 EST 2020


Hugo Ricateau <hugo.ricateau at gmail.com> added the comment:

Thanks for this detailed answer; very instructive :)

> the descriptor protocol is only triggered by "dotted access"

Indeed; this is what I was missing... despite it is indirectly mentioned in the documentation. Nonetheless, it could be worth the overload to explicitly add in the language reference that 'the descriptor protocol is only triggered by "dotted access"' (looks like it is not the case for now).

>    + a list enumerating places where descriptors are *not* invoked
> [...]
> Which of those do you think would have helped you the most?

Could be really helpful as well, by clearly exhibiting the limitations of the descriptors; I think the best location for this could be the 'descriptors howto' page despite the other option is perfectly suitable as well.

Best,
Hugo

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue39443>
_______________________________________


More information about the Python-bugs-list mailing list