From: Fred Drake Date: Wed, 12 May 2004 02:48:29 +0000 (+0000) Subject: add note about the __name__ read-only attribute X-Git-Tag: v2.4a1~391 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f72de0fb8cf74c7fd99515273cf1d91fcfaf3de2;p=python add note about the __name__ read-only attribute (closes SF bug #952212) --- diff --git a/Doc/lib/libstdtypes.tex b/Doc/lib/libstdtypes.tex index 96dc9ac102..ccb16c006b 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}