]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Issue #10771: Clarify that descriptors get used in an *owner* class or one of its...
authorRaymond Hettinger <python@rcn.com>
Tue, 22 Mar 2011 23:27:02 +0000 (16:27 -0700)
committerRaymond Hettinger <python@rcn.com>
Tue, 22 Mar 2011 23:27:02 +0000 (16:27 -0700)
Doc/reference/datamodel.rst

index 25274caf6648615e99e028c4d59f68ee790465ae..6f874b6764a5312410370c1c384c4d3748f50df0 100644 (file)
@@ -1353,10 +1353,11 @@ Implementing Descriptors
 ^^^^^^^^^^^^^^^^^^^^^^^^
 
 The following methods only apply when an instance of the class containing the
-method (a so-called *descriptor* class) appears in the class dictionary of
-another class, known as the *owner* class.  In the examples below, "the
-attribute" refers to the attribute whose name is the key of the property in the
-owner class' :attr:`__dict__`.
+method (a so-called *descriptor* class) appears in an *owner* class (the
+descriptor must be in either the owner's class dictionary or in the class
+dictionary for one of its parents).  In the examples below, "the attribute"
+refers to the attribute whose name is the key of the property in the owner
+class' :attr:`__dict__`.
 
 
 .. method:: object.__get__(self, instance, owner)