Added __doc__ to predefined module attributes.

This commit is contained in:
Guido van Rossum 1996-06-26 19:29:21 +00:00
parent b7c6620e7f
commit 1dead9bd0a
2 changed files with 12 additions and 6 deletions

View file

@ -399,11 +399,14 @@ is done).
Attribute assignment update the module's name space dictionary.
Special read-only attributes: \verb@__dict__@ yields the module's name
space as a dictionary object; \verb@__name__@ yields the module's name
as a string object.
Special read-only attribute: \verb@__dict__@ yields the module's name
space as a dictionary object. Predefined attributes: \verb@__name__@
yields the module's name as a string object; \verb@__doc__@ yields the
module's documentation string as a string object, or
\verb@None@ if no documentation string was found.
\ttindex{__dict__}
\ttindex{__name__}
\ttindex{__doc__}
\indexii{module}{name space}
\item[Classes]

View file

@ -399,11 +399,14 @@ is done).
Attribute assignment update the module's name space dictionary.
Special read-only attributes: \verb@__dict__@ yields the module's name
space as a dictionary object; \verb@__name__@ yields the module's name
as a string object.
Special read-only attribute: \verb@__dict__@ yields the module's name
space as a dictionary object. Predefined attributes: \verb@__name__@
yields the module's name as a string object; \verb@__doc__@ yields the
module's documentation string as a string object, or
\verb@None@ if no documentation string was found.
\ttindex{__dict__}
\ttindex{__name__}
\ttindex{__doc__}
\indexii{module}{name space}
\item[Classes]