Mercurial > cpython-lru_cache-weakref
diff Doc/lib/libstdtypes.tex @ 32069:24c46001416e 2.3
add note about the __name__ read-only attribute
(closes SF bug #952212)
| author | Fred Drake <fdrake@acm.org> |
|---|---|
| date | Wed, 12 May 2004 02:47:56 +0000 |
| parents | 586a49c2c641 |
| children | b00b26cbc303 |
line wrap: on
line diff
--- a/Doc/lib/libstdtypes.tex Tue May 11 18:11:11 2004 +0000 +++ b/Doc/lib/libstdtypes.tex Wed May 12 02:47:56 2004 +0000 @@ -1649,7 +1649,8 @@ \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 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}
