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 maggyero
Recipients docs@python, maggyero
Date 2019-10-01.11:56:31
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1569930991.59.0.212656372364.issue38336@roundup.psfhosted.org>
In-reply-to
Content
The [language documentation](https://docs.python.org/3/reference/datamodel.html#invoking-descriptors) states:

> Data descriptors with __set__() and __get__() defined always override a redefinition in an instance dictionary. In contrast, non-data descriptors can be overridden by instances.

This override is not limited to data descriptors defining `__set__()` (and `__get__()`). It is also true for data descriptors defining `__delete__()` (and `__get__()`) and data descriptors defining both `__set__()` and `__delete__()` (and `__get__()`).

In other words, _any_ data descriptors (objects defining either `__set__()` or `__delete__()` or both) defining `__get__()` override an attribute redefinition in an instance dictionary.
History
Date User Action Args
2019-10-01 11:56:31maggyerosetrecipients: + maggyero, docs@python
2019-10-01 11:56:31maggyerosetmessageid: <1569930991.59.0.212656372364.issue38336@roundup.psfhosted.org>
2019-10-01 11:56:31maggyerolinkissue38336 messages
2019-10-01 11:56:31maggyerocreate