summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2004-05-12 02:48:29 (GMT)
committerFred Drake <fdrake@acm.org>2004-05-12 02:48:29 (GMT)
commitf72de0fb8cf74c7fd99515273cf1d91fcfaf3de2 (patch)
tree706c78450f870b3c17d997ae422c5895a000e4e5 /Doc
parent486cb0ac2ac3cf93770a469a37975e9bd32d8ccf (diff)
downloadcpython-f72de0fb8cf74c7fd99515273cf1d91fcfaf3de2.zip
cpython-f72de0fb8cf74c7fd99515273cf1d91fcfaf3de2.tar.gz
cpython-f72de0fb8cf74c7fd99515273cf1d91fcfaf3de2.tar.bz2
add note about the __name__ read-only attribute
(closes SF bug #952212)
Diffstat (limited to 'Doc')
-rw-r--r--Doc/lib/libstdtypes.tex7
1 files changed, 6 insertions, 1 deletions
diff --git a/Doc/lib/libstdtypes.tex b/Doc/lib/libstdtypes.tex
index 96dc9ac..ccb16c0 100644
--- a/Doc/lib/libstdtypes.tex
+++ b/Doc/lib/libstdtypes.tex
@@ -1785,7 +1785,8 @@ slice objects.
\subsection{Special Attributes \label{specialattrs}}
The implementation adds a few special read-only attributes to several
-object types, where they are relevant:
+object types, where they are relevant. Some of these are not reported
+by the \function{dir()} built-in function.
\begin{memberdesc}[object]{__dict__}
A dictionary or other mapping object used to store an
@@ -1810,3 +1811,7 @@ The class to which a class instance belongs.
The tuple of base classes of a class object. If there are no base
classes, this will be an empty tuple.
\end{memberdesc}
+
+\begin{memberdesc}[class]{__name__}
+The name of the class or type.
+\end{memberdesc}