]> granicus.if.org Git - python/commitdiff
note that descriptor objects must be instances of new-style types
authorFred Drake <fdrake@acm.org>
Thu, 6 May 2004 12:44:29 +0000 (12:44 +0000)
committerFred Drake <fdrake@acm.org>
Thu, 6 May 2004 12:44:29 +0000 (12:44 +0000)
(closes SF bug #817742)

Doc/ref/ref3.tex

index 1daf18a169ebfce69c636ac45bbe26ac90bc6926..9cd7a4cf3ba5721fb5604e51a3c5f7eece726e6b 100644 (file)
@@ -1296,7 +1296,8 @@ containing the method (a so-called \emph{descriptor} class) appears in
 the class dictionary of another new-style class, known as the
 \emph{owner} class. In the examples below, ``the attribute'' refers to
 the attribute whose name is the key of the property in the owner
-class' \code{__dict__}.
+class' \code{__dict__}.  Descriptors can only be implemented as
+new-style classes themselves.
 
 \begin{methoddesc}[object]{__get__}{self, instance, owner}
 Called to get the attribute of the owner class (class attribute access)