]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-38336: Remove the __set__ method restriction on data descriptors for attribute...
authorGéry Ogam <gery.ogam@gmail.com>
Tue, 29 Oct 2019 07:04:01 +0000 (08:04 +0100)
committerRaymond Hettinger <rhettinger@users.noreply.github.com>
Tue, 29 Oct 2019 07:04:01 +0000 (00:04 -0700)
Doc/reference/datamodel.rst

index c6c6e4075039cdb7a1ab5b06ce00b5438b451773..2499aeb6996bb1c418c2ff75fad4268c1af6bc9a 100644 (file)
@@ -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.