summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2004-05-06 12:44:29 (GMT)
committerFred Drake <fdrake@acm.org>2004-05-06 12:44:29 (GMT)
commit67a521ef69655044f771aa925b232b267936fea6 (patch)
tree5717e8937e2dffdaac753374675324e92ff4ddcf /Doc
parente143bbb61034396cd2d5c4ecaa4f313e62ea2a3e (diff)
downloadcpython-67a521ef69655044f771aa925b232b267936fea6.zip
cpython-67a521ef69655044f771aa925b232b267936fea6.tar.gz
cpython-67a521ef69655044f771aa925b232b267936fea6.tar.bz2
note that descriptor objects must be instances of new-style types
(closes SF bug #817742)
Diffstat (limited to 'Doc')
-rw-r--r--Doc/ref/ref3.tex3
1 files changed, 2 insertions, 1 deletions
diff --git a/Doc/ref/ref3.tex b/Doc/ref/ref3.tex
index 1daf18a..9cd7a4c 100644
--- a/Doc/ref/ref3.tex
+++ b/Doc/ref/ref3.tex
@@ -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)