Skip to content

Commit

Permalink
bpo-38336: Remove the __set__ method restriction on data descriptors …
Browse files Browse the repository at this point in the history
…for attribute lookup precedence (pythonGH-16520)
  • Loading branch information
geryogam authored and rhettinger committed Oct 29, 2019
1 parent 0078a0c commit 4c155f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Doc/reference/datamodel.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1716,7 +1716,7 @@ the descriptor defines :meth:`__set__` and/or :meth:`__delete__`, it is a data
descriptor; if it defines neither, it is a non-data descriptor. Normally, data
descriptors define both :meth:`__get__` and :meth:`__set__`, while non-data
descriptors have just the :meth:`__get__` method. Data descriptors with
:meth:`__set__` and :meth:`__get__` defined always override a redefinition in an
:meth:`__get__` and :meth:`__set__` (and/or :meth:`__delete__`) defined always override a redefinition in an
instance dictionary. In contrast, non-data descriptors can be overridden by
instances.

Expand Down

0 comments on commit 4c155f7

Please sign in to comment.