This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author rhettinger
Recipients Hugo Ricateau, eric.snow, rhettinger
Date 2020-01-26.06:04:02
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1580018643.12.0.263255341081.issue39443@roundup.psfhosted.org>
In-reply-to
Content
Some thoughts:

* The docs talk about descriptor invocation from "attribute access".  The reason they don't say "dotted access" is that the descriptors can be invoked in multiple ways: dotted access, getattr()/setattr() functions, super(), or direct calls to __getattribute__().

* From the point-of-view of descriptors, metaclasses aren't special.  The only essential fact needed is that type.__getattribute__() is called instead of object.__getattribute__().  The how-to guide already discusses how those methods differ.

* For now, I'm inclined to leave the docs as-is.  The existing coverage of common cases is already a bit hard to read.  It could become less readable if we list places where something doesn't happen, warnings to avoid features, or detailed explanations of uncommon cases like mixing metaclasses with descriptors.  If this arises again, we could add a FAQ entry of some such.
History
Date User Action Args
2020-01-26 06:04:03rhettingersetrecipients: + rhettinger, eric.snow, Hugo Ricateau
2020-01-26 06:04:03rhettingersetmessageid: <1580018643.12.0.263255341081.issue39443@roundup.psfhosted.org>
2020-01-26 06:04:03rhettingerlinkissue39443 messages
2020-01-26 06:04:02rhettingercreate