]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
add note about the __name__ read-only attribute
authorFred Drake <fdrake@acm.org>
Wed, 12 May 2004 02:47:56 +0000 (02:47 +0000)
committerFred Drake <fdrake@acm.org>
Wed, 12 May 2004 02:47:56 +0000 (02:47 +0000)
(closes SF bug #952212)

Doc/lib/libstdtypes.tex

index 8f05317a4e7e1b76cb82dfa5d2bda6b9620fd3ee..f5a70bbf06b21a6bd63106f8fb9a2980adf14237 100644 (file)
@@ -1649,7 +1649,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
@@ -1674,3 +1675,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}