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 juanpa.arrivillaga
Recipients Michael Robellard, eric.smith, juanpa.arrivillaga
Date 2020-04-15.20:00:22
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1586980822.64.0.92954315773.issue39247@roundup.psfhosted.org>
In-reply-to
Content
But when would you want to have a descriptor as an instance attribute? Descriptors must be in the class dictionary to work:

https://docs.python.org/3/reference/datamodel.html#implementing-descriptors

I suppose, you could want some container class of descriptor objects, but that seems like an extremely narrow use-case, compared to the normal and common use-case of descriptors acting like descriptors. I think special-casing descriptors make sense because they act in a special way.
History
Date User Action Args
2020-04-15 20:00:22juanpa.arrivillagasetrecipients: + juanpa.arrivillaga, eric.smith, Michael Robellard
2020-04-15 20:00:22juanpa.arrivillagasetmessageid: <1586980822.64.0.92954315773.issue39247@roundup.psfhosted.org>
2020-04-15 20:00:22juanpa.arrivillagalinkissue39247 messages
2020-04-15 20:00:22juanpa.arrivillagacreate