Commit 9729a7a9 authored by Guido van Rossum's avatar Guido van Rossum

Added __doc__ to predefined module attributes.

parent 7225519f
...@@ -399,11 +399,14 @@ is done). ...@@ -399,11 +399,14 @@ is done).
Attribute assignment update the module's name space dictionary. Attribute assignment update the module's name space dictionary.
Special read-only attributes: \verb@__dict__@ yields the module's name Special read-only attribute: \verb@__dict__@ yields the module's name
space as a dictionary object; \verb@__name__@ yields the module's name space as a dictionary object. Predefined attributes: \verb@__name__@
as a string object. 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{__dict__}
\ttindex{__name__} \ttindex{__name__}
\ttindex{__doc__}
\indexii{module}{name space} \indexii{module}{name space}
\item[Classes] \item[Classes]
......
...@@ -399,11 +399,14 @@ is done). ...@@ -399,11 +399,14 @@ is done).
Attribute assignment update the module's name space dictionary. Attribute assignment update the module's name space dictionary.
Special read-only attributes: \verb@__dict__@ yields the module's name Special read-only attribute: \verb@__dict__@ yields the module's name
space as a dictionary object; \verb@__name__@ yields the module's name space as a dictionary object. Predefined attributes: \verb@__name__@
as a string object. 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{__dict__}
\ttindex{__name__} \ttindex{__name__}
\ttindex{__doc__}
\indexii{module}{name space} \indexii{module}{name space}
\item[Classes] \item[Classes]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment